Skip to content

Commit 8811b06

Browse files
committed
[docs-infra] Set SEARCH_INDEX Env for v8 (#21875)
1 parent 9cf62cb commit 8811b06

File tree

5 files changed

+3288
-2407
lines changed

5 files changed

+3288
-2407
lines changed

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';
@@ -80,6 +81,7 @@ export default withDeploymentConfig({
8081
env: {
8182
// docs-infra
8283
LIB_VERSION: pkg.version,
84+
SEARCH_INDEX: `material-ui-v${semver.major(pkg.version)}`,
8385
SOURCE_CODE_REPO,
8486
SOURCE_GITHUB_BRANCH,
8587
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
@@ -94,6 +94,7 @@
9494
"rifm": "0.12.1",
9595
"rimraf": "catalog:",
9696
"rxjs": "^7.8.2",
97+
"semver": "7.7.3",
9798
"styled-components": "^6.1.19",
9899
"stylis": "catalog:",
99100
"webpack-bundle-analyzer": "^5.1.1"
@@ -114,6 +115,7 @@
114115
"@types/nprogress": "0.2.3",
115116
"@types/prop-types": "catalog:",
116117
"@types/react-dom": "catalog:",
118+
"@types/semver": "catalog:",
117119
"@types/stylis": "4.2.7",
118120
"@types/webpack-bundle-analyzer": "4.7.0",
119121
"gm": "1.25.1",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"@mui/internal-netlify-cache": "0.0.2-canary.1",
7878
"@mui/internal-test-utils": "catalog:",
7979
"@mui/material": "catalog:",
80-
"@mui/monorepo": "github:mui/material-ui#v7.x",
80+
"@mui/monorepo": "github:mui/material-ui#5cb7317ba2d9ebdfcdc171edc91de87c0aff6276",
8181
"@mui/utils": "catalog:",
8282
"@next/eslint-plugin-next": "15.5.9",
8383
"@octokit/plugin-retry": "8.0.3",

0 commit comments

Comments
 (0)