Skip to content

Commit 3cb4195

Browse files
authored
[docs-infra] Fix Search for v9 (#21874)
1 parent 996f143 commit 3cb4195

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

docs/next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as path from 'path';
22
import * as fs from 'fs';
33
import * as url from 'url';
4+
import * as semver from 'semver';
45
import { createRequire } from 'module';
56
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
67
import { withDeploymentConfig } from '@mui/internal-docs-infra/withDocsInfra';
@@ -81,6 +82,7 @@ export default withDeploymentConfig({
8182
env: {
8283
// docs-infra
8384
LIB_VERSION: pkg.version,
85+
SEARCH_INDEX: `material-ui-v${semver.major(pkg.version)}`,
8486
SOURCE_CODE_REPO,
8587
SOURCE_GITHUB_BRANCH,
8688
GITHUB_TEMPLATE_DOCS_FEEDBACK: '6.docs-feedback.yml',

docs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"rifm": "0.12.1",
9090
"rimraf": "catalog:",
9191
"rxjs": "^7.8.2",
92+
"semver": "7.7.4",
9293
"styled-components": "^6.3.12",
9394
"stylis": "catalog:",
9495
"webpack-bundle-analyzer": "^5.2.0"
@@ -108,6 +109,7 @@
108109
"@types/nprogress": "^0.2.3",
109110
"@types/prop-types": "catalog:",
110111
"@types/react-dom": "catalog:",
112+
"@types/semver": "catalog:",
111113
"@types/stylis": "4.2.7",
112114
"@types/webpack-bundle-analyzer": "4.7.0",
113115
"gm": "1.25.1",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@mui/internal-netlify-cache": "0.0.3-canary.2",
8080
"@mui/internal-test-utils": "catalog:",
8181
"@mui/material": "catalog:",
82-
"@mui/monorepo": "github:mui/material-ui#310d80c5a551e55caf2211f15b4e30658703f114",
82+
"@mui/monorepo": "github:mui/material-ui#3f1a6109bc249ce7c7ad4ae8531bbfb289afc42d",
8383
"@mui/utils": "catalog:",
8484
"@next/eslint-plugin-next": "16.2.1",
8585
"@octokit/plugin-retry": "8.0.3",

pnpm-lock.yaml

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)