From 255584527a72de2a89585088f07c7721c094dfc6 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 27 Dec 2024 21:41:44 +0100 Subject: [PATCH 1/2] [docs] Fix 301 redirections --- docs/data/joy/customization/dark-mode/dark-mode.md | 2 +- .../material/customization/css-theme-variables/configuration.md | 2 +- .../material/migration/migration-v4/v5-component-changes.md | 2 +- docs/translations/api-docs/app-bar/app-bar.json | 2 +- packages/mui-material/src/AppBar/AppBar.d.ts | 2 +- packages/mui-material/src/AppBar/AppBar.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/data/joy/customization/dark-mode/dark-mode.md b/docs/data/joy/customization/dark-mode/dark-mode.md index 317e450eec8d2d..f9f718357679e9 100644 --- a/docs/data/joy/customization/dark-mode/dark-mode.md +++ b/docs/data/joy/customization/dark-mode/dark-mode.md @@ -115,7 +115,7 @@ export default class MyDocument extends Document { ### Next.js App Router -To use the Joy UI API with a Next.js project with the App Router, add the following code to the [root layout](https://nextjs.org/docs/app/building-your-application/routing/layouts-and-templates#root-layout-required) file in order to prevent flickering: +To use the Joy UI API with a Next.js project with the App Router, add the following code to the [root layout](https://nextjs.org/docs/app/api-reference/file-conventions/layout#root-layouts) file in order to prevent flickering: ```jsx title="app/layout.js" import InitColorSchemeScript from '@mui/joy/InitColorSchemeScript'; diff --git a/docs/data/material/customization/css-theme-variables/configuration.md b/docs/data/material/customization/css-theme-variables/configuration.md index 61b3d935a07be7..516c650fa461ed 100644 --- a/docs/data/material/customization/css-theme-variables/configuration.md +++ b/docs/data/material/customization/css-theme-variables/configuration.md @@ -181,7 +181,7 @@ createTheme({ ### Next.js App Router -Add the following code to the [root layout](https://nextjs.org/docs/app/building-your-application/routing/layouts-and-templates#root-layout-required) file: +Add the following code to the [root layout](https://nextjs.org/docs/app/api-reference/file-conventions/layout#root-layouts) file: ```jsx title="app/layout.js" import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'; diff --git a/docs/data/material/migration/migration-v4/v5-component-changes.md b/docs/data/material/migration/migration-v4/v5-component-changes.md index 8fa8f2b793e237..e7f5555da7ed23 100644 --- a/docs/data/material/migration/migration-v4/v5-component-changes.md +++ b/docs/data/material/migration/migration-v4/v5-component-changes.md @@ -1255,7 +1255,7 @@ This component has been removed. You can get a reference to the underlying DOM node of our components via `ref` prop. -The component relied on [`ReactDOM.findDOMNode`](https://react.dev/reference/react-dom/findDOMNode) which is [deprecated in `React.StrictMode`](https://react.dev/reference/react/StrictMode#warning-about-deprecated-finddomnode-usage). +The component relied on [`ReactDOM.findDOMNode`](https://legacy.reactjs.org/docs/react-dom.html#finddomnode) which is [deprecated in `React.StrictMode`](https://react.dev/reference/react/StrictMode#warning-about-deprecated-finddomnode-usage). :::success This is handled in the [preset-safe codemod](#preset-safe) by applying fake `RootRef` component to prevent application crash, but further fixes are required. diff --git a/docs/translations/api-docs/app-bar/app-bar.json b/docs/translations/api-docs/app-bar/app-bar.json index 24a0d15e2cce0b..c792fde0fd695a 100644 --- a/docs/translations/api-docs/app-bar/app-bar.json +++ b/docs/translations/api-docs/app-bar/app-bar.json @@ -10,7 +10,7 @@ "description": "If true, the color prop is applied in dark mode." }, "position": { - "description": "The positioning type. The behavior of the different options is described in the MDN web docs. Note: sticky is not universally supported and will fall back to static when unavailable." + "description": "The positioning type. The behavior of the different options is described in the MDN web docs. Note: sticky is not universally supported and will fall back to static when unavailable." }, "sx": { "description": "The system prop that allows defining system overrides as well as additional CSS styles." diff --git a/packages/mui-material/src/AppBar/AppBar.d.ts b/packages/mui-material/src/AppBar/AppBar.d.ts index db9f4c75fbcee9..97c3b3603a0baa 100644 --- a/packages/mui-material/src/AppBar/AppBar.d.ts +++ b/packages/mui-material/src/AppBar/AppBar.d.ts @@ -30,7 +30,7 @@ export interface AppBarOwnProps { enableColorOnDark?: boolean; /** * The positioning type. The behavior of the different options is described - * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning). + * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position). * Note: `sticky` is not universally supported and will fall back to `static` when unavailable. * @default 'fixed' */ diff --git a/packages/mui-material/src/AppBar/AppBar.js b/packages/mui-material/src/AppBar/AppBar.js index 5be4078f364c41..fc0e5c86fb65fa 100644 --- a/packages/mui-material/src/AppBar/AppBar.js +++ b/packages/mui-material/src/AppBar/AppBar.js @@ -247,7 +247,7 @@ AppBar.propTypes /* remove-proptypes */ = { enableColorOnDark: PropTypes.bool, /** * The positioning type. The behavior of the different options is described - * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning). + * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position). * Note: `sticky` is not universally supported and will fall back to `static` when unavailable. * @default 'fixed' */ From 16ff52a614d4b03d9bb3d27fb1b450ee3eff7d6c Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 27 Dec 2024 21:47:12 +0100 Subject: [PATCH 2/2] [docs] Fix 301 redirections --- docs/pages/blog/material-ui-v6-is-out.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/blog/material-ui-v6-is-out.md b/docs/pages/blog/material-ui-v6-is-out.md index 46ce16b4622fe2..04e4e31a7812fd 100644 --- a/docs/pages/blog/material-ui-v6-is-out.md +++ b/docs/pages/blog/material-ui-v6-is-out.md @@ -372,7 +372,7 @@ This means you no longer have to clutter the DOM with wrappers like Box or Stack ## React 19 support Material UI v6 is ready for React 19. -We've been testing Material UI with the latest [React 19 RC](https://react.dev/blog/2024/04/25/react-19) versions to ensure compatibility once the stable release of React 19 is out. +We've been testing Material UI with the latest [React 19 RC](https://react.dev/blog/2024/12/05/react-19) versions to ensure compatibility once the stable release of React 19 is out. We're also working on backporting React 19 support to Material UI v5—stay tuned.