-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs] Fix experimental API page duplication #35213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ee3c28b
0e4b892
9ea3ed8
d5e69be
1d9db5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -378,18 +378,28 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301! | |
/:lang/joy-ui/core-features/global-variant/ /:langjoy-ui/main-features/global-variants/ 301 | ||
/joy-ui/core-features/automatic-adjustment/ /joy-ui/main-features/automatic-adjustment/ 301 | ||
/:lang/joy-ui/core-features/automatic-adjustment/ /:lang/joy-ui/main-features/automatic-adjustment/ 301 | ||
/joy-ui/core-features/perfect-dark-mode/ /joy-ui/main-features/perfect-dark-mode/ 301 | ||
/:lang/joy-ui/core-features/perfect-dark-mode/ /:lang/joy-ui/main-features/perfect-dark-mode/ 301 | ||
Comment on lines
-381
to
-382
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a double redirection. it was added in https://github.com/mui/material-ui/pull/34613/files#diff-7a0cbac74402caf0e99ba338a9e7c42684580a1f85e149110c3c2ca6e38055afR390 @samuelsycamore A tip, when adding a new redirection, it's a good practice to also update the redirections that might already point to the new "old URL". It avoids a double 301. |
||
/joy-ui/core-features/perfect-dark-mode/ /joy-ui/main-features/dark-mode-optimization/ 301 | ||
/:lang/joy-ui/core-features/perfect-dark-mode/ /:lang/joy-ui/main-features/dark-mode-optimization/ 301 | ||
/system/basics/ /system/getting-started/overview/ 301 | ||
/:lang/system/basics/ /:lang/system/getting-started/overview/ 301 | ||
/system/the-sx-prop/ /system/getting-started/the-sx-prop/ 301 | ||
/:lang/system/the-sx-prop/ /:lang/system/getting-started/the-sx-prop/ 301 | ||
/system/advanced/ /system/getting-started/custom-components/ 301 | ||
/:lang/base/react-trap-focus/ /:lang/base/react-focus-trap/ 301 | ||
/:lang/base/api/trap-focus/ /:lang/base/api/focus-trap/ 301 | ||
/:lang/system/advanced/ /:lang/system/getting-started/custom-components/ 301 | ||
/base/react-trap-focus/ /base/react-focus-trap/ 301 | ||
/:lang/base/react-trap-focus/ /:lang/base/react-focus-trap/ 301 | ||
/base/api/trap-focus/ /base/api/focus-trap/ 301 | ||
/:lang/base/api/trap-focus/ /:lang/base/api/focus-trap/ 301 | ||
/material-ui/experimental-api/css-variables/ /material-ui/experimental-api/css-theme-variables/overview/ 301 | ||
/:lang/material-ui/experimental-api/css-variables/ /:lang/material-ui/experimental-api/css-theme-variables/overview/ 301 | ||
/joy-ui/main-features/perfect-dark-mode/ /joy-ui/main-features/dark-mode-optimization/ 301 | ||
/:lang/joy-ui/main-features/perfect-dark-mode/ /:lang/joy-ui/main-features/dark-mode-optimization/ 301 | ||
/joy-ui/guides/applying-dark-mode/ /joy-ui/customization/dark-mode/ 301 | ||
/:lang/joy-ui/guides/applying-dark-mode/ /:lang/joy-ui/customization/dark-mode/ 301 | ||
Comment on lines
397
to
+398
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redirecting the en-US locale isn't enough. Once we stop this generation of pt, zh pages, we will be able to not have |
||
/experimental-api/classname-generator/ /material-ui/experimental-api/classname-generator/ 301 | ||
/:lang/experimental-api/classname-generator/ /:lang/material-ui/experimental-api/classname-generator/ 301 | ||
/experimental-api/css-variables/ /material-ui/experimental-api/css-theme-variables/overview/ 301 | ||
/:lang/experimental-api/css-variables/ /:lang/material-ui/experimental-api/css-theme-variables/overview/ 301 | ||
# 2023 | ||
|
||
# Proxies | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,15 +280,6 @@ const pages: readonly MuiPage[] = [ | |
{ pathname: '/guides/flow' }, | ||
], | ||
}, | ||
Comment on lines
280
to
282
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was tempted to remove all the rest, but I didn't to keep this PR relatively small. |
||
{ | ||
pathname: '/experimental-api', | ||
title: 'Experimental APIs', | ||
icon: 'ExperimentIcon', | ||
children: [ | ||
{ pathname: '/experimental-api/classname-generator', title: 'ClassName generator' }, | ||
{ pathname: '/experimental-api/css-variables', title: 'CSS variables' }, | ||
], | ||
}, | ||
{ | ||
pathname: '/styles', | ||
title: 'Styles', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oliviertassinari I see this in https://mui.com/material-ui/experimental-api/css-variables/. I think your intent was to add a comment here. As for the fix, should we remove this page or keep the heading as
CSS variables
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the next step is to merge the two pages. https://mui.com/material-ui/experimental-api/css-variables/ is superior in a couple of ways:
disableTransitionOnChange