From ae4f5093344ddc619af475dd61658e947515ed32 Mon Sep 17 00:00:00 2001 From: Danail H Date: Tue, 31 May 2022 16:16:32 +0200 Subject: [PATCH 1/2] Remove the pickers page under Lab --- .../pickers/lab-date-and-time-pickers-pt.md | 21 ------------------- .../pickers/lab-date-and-time-pickers-zh.md | 21 ------------------- .../pickers/lab-date-and-time-pickers.md | 21 ------------------- docs/data/material/pages.ts | 2 -- .../material-ui/lab-date-and-time-pickers.js | 11 ---------- docs/public/_redirects | 3 --- docs/scripts/postMigration.ts | 3 --- docs/src/pages.ts | 1 - docs/translations/translations-pt.json | 1 - docs/translations/translations-zh.json | 1 - docs/translations/translations.json | 1 - 11 files changed, 86 deletions(-) delete mode 100644 docs/data/material/components/pickers/lab-date-and-time-pickers-pt.md delete mode 100644 docs/data/material/components/pickers/lab-date-and-time-pickers-zh.md delete mode 100644 docs/data/material/components/pickers/lab-date-and-time-pickers.md delete mode 100644 docs/pages/material-ui/lab-date-and-time-pickers.js diff --git a/docs/data/material/components/pickers/lab-date-and-time-pickers-pt.md b/docs/data/material/components/pickers/lab-date-and-time-pickers-pt.md deleted file mode 100644 index adc8261370f99b..00000000000000 --- a/docs/data/material/components/pickers/lab-date-and-time-pickers-pt.md +++ /dev/null @@ -1,21 +0,0 @@ -# Date and time pickers - -

The DatePicker, TimePicker, and related components have been moved to MUI X — our collection of advanced components.

- -## Why have the picker components been moved to MUI X? - -MUI X components are built for complex use cases. Date and time pickers are difficult to pull off correctly, so they deserve the special attention that they will receive as part of MUI X. - -To learn more, check out the [blog post about the move](/blog/lab-date-pickers-to-mui-x/). - -## How do I migrate? - -Follow the [migration page](/x/react-date-pickers/migration-lab/) to migrate from lab to MUI X. - -## Where is the new documentation? - -You can find documentation on the date and time picker components in the [MUI X docs](/x/react-date-pickers/getting-started/). - -## Where should I report issues, request features, or submit PRs? - -Please share all feedback, issues, and requests in the [MUI X repository](https://github.com/mui/mui-x). diff --git a/docs/data/material/components/pickers/lab-date-and-time-pickers-zh.md b/docs/data/material/components/pickers/lab-date-and-time-pickers-zh.md deleted file mode 100644 index adc8261370f99b..00000000000000 --- a/docs/data/material/components/pickers/lab-date-and-time-pickers-zh.md +++ /dev/null @@ -1,21 +0,0 @@ -# Date and time pickers - -

The DatePicker, TimePicker, and related components have been moved to MUI X — our collection of advanced components.

- -## Why have the picker components been moved to MUI X? - -MUI X components are built for complex use cases. Date and time pickers are difficult to pull off correctly, so they deserve the special attention that they will receive as part of MUI X. - -To learn more, check out the [blog post about the move](/blog/lab-date-pickers-to-mui-x/). - -## How do I migrate? - -Follow the [migration page](/x/react-date-pickers/migration-lab/) to migrate from lab to MUI X. - -## Where is the new documentation? - -You can find documentation on the date and time picker components in the [MUI X docs](/x/react-date-pickers/getting-started/). - -## Where should I report issues, request features, or submit PRs? - -Please share all feedback, issues, and requests in the [MUI X repository](https://github.com/mui/mui-x). diff --git a/docs/data/material/components/pickers/lab-date-and-time-pickers.md b/docs/data/material/components/pickers/lab-date-and-time-pickers.md deleted file mode 100644 index adc8261370f99b..00000000000000 --- a/docs/data/material/components/pickers/lab-date-and-time-pickers.md +++ /dev/null @@ -1,21 +0,0 @@ -# Date and time pickers - -

The DatePicker, TimePicker, and related components have been moved to MUI X — our collection of advanced components.

- -## Why have the picker components been moved to MUI X? - -MUI X components are built for complex use cases. Date and time pickers are difficult to pull off correctly, so they deserve the special attention that they will receive as part of MUI X. - -To learn more, check out the [blog post about the move](/blog/lab-date-pickers-to-mui-x/). - -## How do I migrate? - -Follow the [migration page](/x/react-date-pickers/migration-lab/) to migrate from lab to MUI X. - -## Where is the new documentation? - -You can find documentation on the date and time picker components in the [MUI X docs](/x/react-date-pickers/getting-started/). - -## Where should I report issues, request features, or submit PRs? - -Please share all feedback, issues, and requests in the [MUI X repository](https://github.com/mui/mui-x). diff --git a/docs/data/material/pages.ts b/docs/data/material/pages.ts index 4ed95e5c72ad6f..06ac023c2cfce0 100644 --- a/docs/data/material/pages.ts +++ b/docs/data/material/pages.ts @@ -24,7 +24,6 @@ const pages = [ '/material-ui/material-icons', '/material-ui/about-the-lab', '/material-ui/transitions', - '/material-ui/lab-date-and-time-pickers', ], title: 'Components', icon: 'ToggleOnIcon', @@ -142,7 +141,6 @@ const pages = [ subheader: 'lab', children: [ { pathname: '/material-ui/about-the-lab', title: 'About the lab 🧪' }, - { pathname: '/material-ui/lab-date-and-time-pickers', title: 'Date & Time pickers' }, { pathname: '/material-ui/react-masonry' }, { pathname: '/material-ui/react-timeline' }, { pathname: '/material-ui/react-tree-view' }, diff --git a/docs/pages/material-ui/lab-date-and-time-pickers.js b/docs/pages/material-ui/lab-date-and-time-pickers.js deleted file mode 100644 index 5adaba9e11d6c6..00000000000000 --- a/docs/pages/material-ui/lab-date-and-time-pickers.js +++ /dev/null @@ -1,11 +0,0 @@ -import * as React from 'react'; -import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; -import { - demos, - docs, - demoComponents, -} from 'docs/data/material/components/pickers/lab-date-and-time-pickers.md?@mui/markdown'; - -export default function Page() { - return ; -} diff --git a/docs/public/_redirects b/docs/public/_redirects index e9c5094366697f..1bc2dc3fe8084a 100644 --- a/docs/public/_redirects +++ b/docs/public/_redirects @@ -195,9 +195,6 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301! /components/transitions/ /material-ui/transitions/ 301 /pt/components/transitions/ /pt/material-ui/transitions/ 301 /zh/components/transitions/ /zh/material-ui/transitions/ 301 -/components/pickers/ /material-ui/lab-date-and-time-pickers/ 301 -/pt/components/pickers/ /pt/material-ui/lab-date-and-time-pickers/ 301 -/zh/components/pickers/ /zh/material-ui/lab-date-and-time-pickers/ 301 /components/about-the-lab/ /material-ui/about-the-lab/ 301 /pt/components/about-the-lab/ /pt/material-ui/about-the-lab/ 301 /zh/components/about-the-lab/ /zh/material-ui/about-the-lab/ 301 diff --git a/docs/scripts/postMigration.ts b/docs/scripts/postMigration.ts index 4cdabf75e30159..649fec80865415 100644 --- a/docs/scripts/postMigration.ts +++ b/docs/scripts/postMigration.ts @@ -219,9 +219,6 @@ function run() { /components/transitions/ /material-ui/transitions/ 301 /:lang/components/transitions/ /:lang/material-ui/transitions/ 301 -/components/pickers/ /material-ui/lab-date-and-time-pickers/ 301 -/:lang/components/pickers/ /:lang/material-ui/lab-date-and-time-pickers/ 301 - /components/about-the-lab/ /material-ui/about-the-lab/ 301 /:lang/components/about-the-lab/ /:lang/material-ui/about-the-lab/ 301 diff --git a/docs/src/pages.ts b/docs/src/pages.ts index dbda14b73fa1a6..b47043cbf4ba82 100644 --- a/docs/src/pages.ts +++ b/docs/src/pages.ts @@ -155,7 +155,6 @@ const pages: readonly MuiPage[] = [ subheader: '/components/lab', children: [ { pathname: '/components/about-the-lab', title: 'About the lab 🧪' }, - { pathname: '/components/lab-date-and-time-pickers', title: 'Date & Time Pickers' }, { pathname: '/components/masonry' }, { pathname: '/components/timeline' }, { pathname: '/components/tree-view' }, diff --git a/docs/translations/translations-pt.json b/docs/translations/translations-pt.json index af7e7784cc98cd..c405053f67b377 100644 --- a/docs/translations/translations-pt.json +++ b/docs/translations/translations-pt.json @@ -278,7 +278,6 @@ "MUI X": "MUI X", "lab": "Lab", "/material-ui/about-the-lab": "About the lab 🧪", - "/material-ui/lab-date-and-time-pickers": "Date & Time Pickers", "/material-ui/react-masonry": "Masonry", "/material-ui/react-timeline": "Timeline", "/material-ui/react-tree-view": "Tree View", diff --git a/docs/translations/translations-zh.json b/docs/translations/translations-zh.json index 9e3d460d1783a7..fab7e8683f1550 100644 --- a/docs/translations/translations-zh.json +++ b/docs/translations/translations-zh.json @@ -278,7 +278,6 @@ "MUI X": "MUI X", "lab": "Lab", "/material-ui/about-the-lab": "About the lab 🧪", - "/material-ui/lab-date-and-time-pickers": "Date & Time Pickers", "/material-ui/react-masonry": "Masonry", "/material-ui/react-timeline": "Timeline", "/material-ui/react-tree-view": "Tree View", diff --git a/docs/translations/translations.json b/docs/translations/translations.json index 403dac5a166213..5baf1cc16a4fbf 100644 --- a/docs/translations/translations.json +++ b/docs/translations/translations.json @@ -286,7 +286,6 @@ "MUI X": "MUI X", "lab": "Lab", "/material-ui/about-the-lab": "About the lab 🧪", - "/material-ui/lab-date-and-time-pickers": "Date & Time pickers", "/material-ui/react-masonry": "Masonry", "/material-ui/react-timeline": "Timeline", "/material-ui/react-tree-view": "Tree view", From 4bbed0cf7a4b96d0679adb3f117a4934877e9dd0 Mon Sep 17 00:00:00 2001 From: Danail H Date: Tue, 31 May 2022 16:30:03 +0200 Subject: [PATCH 2/2] add redirects --- docs/public/_redirects | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/public/_redirects b/docs/public/_redirects index 1bc2dc3fe8084a..7b196c06394d6e 100644 --- a/docs/public/_redirects +++ b/docs/public/_redirects @@ -195,6 +195,12 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301! /components/transitions/ /material-ui/transitions/ 301 /pt/components/transitions/ /pt/material-ui/transitions/ 301 /zh/components/transitions/ /zh/material-ui/transitions/ 301 +/components/pickers/ /x/react-date-pickers/getting-started/ 301 +/pt/components/pickers/ /pt/x/react-date-pickers/getting-started/ 301 +/zh/components/pickers/ /zh/x/react-date-pickers/getting-started/ 301 +/material-ui/lab-date-and-time-pickers/ /x/react-date-pickers/getting-started/ 301 +/pt/material-ui/lab-date-and-time-pickers/ /pt/x/react-date-pickers/getting-started/ 301 +/zh/material-ui/lab-date-and-time-pickers/ /zh/x/react-date-pickers/getting-started/ 301 /components/about-the-lab/ /material-ui/about-the-lab/ 301 /pt/components/about-the-lab/ /pt/material-ui/about-the-lab/ 301 /zh/components/about-the-lab/ /zh/material-ui/about-the-lab/ 301