[docs-infra] Migrate modules to be used from @mui/docs#21590
Open
brijeshb42 wants to merge 2 commits intomui:masterfrom
Open
[docs-infra] Migrate modules to be used from @mui/docs#21590brijeshb42 wants to merge 2 commits intomui:masterfrom
brijeshb42 wants to merge 2 commits intomui:masterfrom
Conversation
|
Deploy preview: https://deploy-preview-21590--material-ui-x.netlify.app/ Bundle size report
|
brijeshb42
commented
Mar 4, 2026
package.json
Outdated
| "@mui/internal-test-utils": "catalog:", | ||
| "@mui/material": "catalog:", | ||
| "@mui/monorepo": "github:mui/material-ui#600ea849c3a238c97ca0eb0c9e06da7f1cd2f366", | ||
| "@mui/monorepo": "github:brijeshb42/material-ui#30b88e3", |
Contributor
Author
There was a problem hiding this comment.
Will be updated before merging.
brijeshb42
commented
Mar 4, 2026
pnpm-workspace.yaml
Outdated
| '@mui/internal-test-utils': 2.0.18-canary.9 | ||
| '@mui/material': ^7.3.7 | ||
| '@mui/stylis-plugin-rtl': ^7.3.7 | ||
| '@mui/stylis-plugin-rtl': 'https://pkg.pr.new/mui/material-ui/@mui/stylis-plugin-rtl@ca39e3b' |
1 task
3d8f9da to
89d4936
Compare
brijeshb42
commented
Mar 9, 2026
| ], | ||
| "test/*": ["./test/*"], | ||
| "docs/src/modules/utils/mapApiPageTranslations": [ | ||
| "./docs/src/modules/utils/mapApiPageTranslations.js" |
Contributor
Author
There was a problem hiding this comment.
To be removed once the docs generation script is updated
086612e to
82c53f2
Compare
82c53f2 to
f330a50
Compare
…ument to TypeScript Migrate _app.js → _app.tsx and _document.js → _document.tsx, using the new <DocsApp> component and createGetInitialProps factory from @mui/docs/DocsApp. This removes ~170 lines of duplicated boilerplate (service worker, loadDependencies, console banner, emotion cache, provider tree, reportWebVitals, getInitialProps) that are now shared with material-ui via @mui/docs. Project-specific code retained in _app.tsx: - Font loading (Inter, Roboto, General Sans, IBM Plex Sans) - X telemetry initialization - productId ad-hoc overrides for /x/api/ URLs - X product identifiers with version env vars - X demo context with sandbox config (getVersions, includePeerDependencies, postProcessImport) - Conditional ThemeWrapper for /playground routes Added docs-env.d.ts importing '@mui/docs/webpack' for require.context() type declarations. Updated @mui/monorepo dependency to pick up: - Shared DocsApp component and utilities - Optional ProductInfo.logo/logoSvg/wordmarkSvg (not used by MUI X) - Optional SandboxConfig.getRootIndex (not used by MUI X) - TypeScript conversions of codeStyling, codeVariant, constants in @mui/docs
f330a50 to
2001f6a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion PR to follow the migration of components moved from
material-ui/docsto@mui/docs.Currently, the monorepo dependency is still there and will continue to be there till 100% migration is done. I've removed @mui/docs dependency for now since the docs was using source from monorepo anyways. Will be added in the 100% migration PR.
Migration PR for Core -
[docs-infra] Migrate simpler modules from docs to mui-docs material-ui#47897
[docs-infra] Extract shared App component from _app into @mui/docs material-ui#47933
I have followed (at least) the PR section of the contributing guide.