Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import * as path from 'path';
import * as url from 'url';
import * as fs from 'fs';
import * as semver from 'semver';
// @ts-ignore
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import { createRequire } from 'module';
Expand Down Expand Up @@ -185,6 +186,7 @@ export default withDocsInfra({
env: {
// docs-infra
LIB_VERSION: pkg.version,
SEARCH_INDEX: `material-ui-v${semver.major(pkg.version)}`,
SOURCE_CODE_REPO: 'https://github.com/mui/material-ui',
SOURCE_GITHUB_BRANCH: 'master', // #target-branch-reference
GITHUB_TEMPLATE_DOCS_FEEDBACK: '4.docs-feedback.yml',
Expand Down
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:clean": "rimraf .next && pnpm build",
"build-sw": "node ./scripts/buildServiceWorker.js",
"dev": "next dev",
"deploy": "git fetch upstream $(git branch --show-current) && git push -f material-ui-docs FETCH_HEAD:latest",
"deploy": "git fetch upstream $(git branch --show-current) && git push -f material-ui-docs FETCH_HEAD:v7",
"icons": "rimraf --glob public/static/icons/* && node ./scripts/buildIcons.js",
"start": "serve ./export",
"create-playground": "cpy --cwd=scripts playground.template.tsx ../../pages/playground --rename=index.tsx",
Expand Down Expand Up @@ -99,6 +99,7 @@
"react-virtuoso": "^4.18.1",
"react-window": "^2.2.5",
"rimraf": "^6.1.2",
"semver": "^7.7.4",
"styled-components": "^6.3.8",
"stylis": "4.2.0",
"use-count-up": "^3.0.1",
Expand All @@ -125,6 +126,7 @@
"@types/react-dom": "19.2.3",
"@types/react-swipeable-views": "0.13.6",
"@types/react-transition-group": "4.4.12",
"@types/semver": "^7.7.1",
"@types/stylis": "4.2.7",
"chai": "6.2.2",
"cross-fetch": "4.1.0",
Expand Down
10 changes: 5 additions & 5 deletions docs/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,11 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301!
## MUI X
## Unlike the store that expect to be hosted under a subfolder,
## MUI X is configured to be hosted at the root.
/static/x/* https://docs-v8--material-ui-x.netlify.app/static/x/:splat 200
/x/_next/* https://docs-v8--material-ui-x.netlify.app/_next/:splat 200
/x/* https://docs-v8--material-ui-x.netlify.app/x/:splat 200
/r/x-* https://docs-v8--material-ui-x.netlify.app/r/x-:splat 200
/:lang/x/* https://docs-v8--material-ui-x.netlify.app/:lang/x/:splat 200
/static/x/* https://docs-v7--material-ui-x.netlify.app/static/x/:splat 200
/x/_next/* https://docs-v7--material-ui-x.netlify.app/_next/:splat 200
/x/* https://docs-v7--material-ui-x.netlify.app/x/:splat 200
/r/x-* https://docs-v7--material-ui-x.netlify.app/r/x-:splat 200
/:lang/x/* https://docs-v7--material-ui-x.netlify.app/:lang/x/:splat 200

## Toolpad
/toolpad/core/templates/nextjs-dashboard/_next/* https://toolpad-core-nextjs-themed.vercel.app/_next/:splat 200
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default function AppSearch(props) {
initialQuery={initialQuery}
appId="TZGZ85B9TB"
apiKey="8177dfb3e2be72b241ffb8c5abafa899"
indexName="material-ui-v7"
indexName={process.env.SEARCH_INDEX}
searchParameters={{
facetFilters: [facetFilterLanguage],
filters,
Expand Down
Loading
Loading