Skip to content

Commit

Permalink
[docs] Fix SEO issues reported by ahrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 11, 2023
1 parent 0aa7db4 commit 74e7a94
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/data/joy/components/snackbar/snackbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Radix will enhance the functionalities by preserving the styles of Joy UI compon
Animation is created by targeting `data-*` attributes injected by Radix UI's `Toast.Root` component.
In this demo, it uses `@mui/system` keyframes API, same as emotion's keyframes, to build the animation stylesheet.

- [Install Radix UI's Toast](https://www.radix-ui.com/docs/primitives/components/toast#installation)
- [Toast component documentation](https://www.radix-ui.com/docs/primitives/components/toast)
- [Install Radix UI's Toast](https://www.radix-ui.com/primitives/docs/components/toast#installation)
- [Toast component documentation](https://www.radix-ui.com/primitives/docs/components/toast)

<iframe src="https://codesandbox.io/embed/snackbar-joy-ui-feat-radix-v8e7qw?module=%2Fdemo.tsx&fontsize=14&hidenavigation=1&theme=dark&view=preview"
style="width:100%; height:360px; border:2; border-radius: 8px; overflow:hidden;"
Expand Down
9 changes: 1 addition & 8 deletions docs/data/material/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ Welcome to the MUI community!
Our tools are used by thousands of developers and teams all around the world, many of whom actively engage with the community through various online platforms.
These are the best places to start asking questions and looking for answers when you need help.

### Discord

MUI maintains an official [Discord server](https://mui.com/r/discord/) for real-time updates and discussions.
This is a great place to post if you need help troubleshooting or you're looking for feedback on a project.

### Stack Overflow

[Stack Overflow](https://stackoverflow.com/) contains a wealth of information about Material UI and other MUI products, spanning many years and countless discussion threads.
Head here to see if your problem has already been resolved by the community, or else [post a question](https://stackoverflow.com/questions/tagged/mui) to get help from community experts as well as MUI maintainers.
Head here to see if your problem has already been resolved by the community, or else [post a question](https://stackoverflow.com/questions/tagged/material-ui) to get help from community experts as well as MUI maintainers.

:::success
If you're using an older version of Material UI, you may find answers on SO with links to content that no longer exists in the latest version of the documentation.
Expand All @@ -27,8 +22,6 @@ Visit the [MUI Versions](https://mui.com/versions/) page to find the archived do

MUI uses GitHub issues to track bug reports and feature requests.

(Need help debugging your app? Try [Discord](#discord) instead.)

If you think you've found a bug in the codebase, or you have an idea for a new feature, please [search the issues on GitHub](https://github.com/mui/material-ui/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aclosed) before opening a new one, to ensure you're not creating a duplicate.

- [Open an issue on MUI Core](https://github.com/mui/material-ui/issues/new/choose): for issues related to Material UI, Base UI, Joy UI, and MUI System.
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/guides/routing/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const LinkBehavior = React.forwardRef((props, ref) => (

The [example folder](https://github.com/mui/material-ui/tree/HEAD/examples/material-ui-nextjs-ts) provides an adapter for the use of [Next.js's Link component](https://nextjs.org/docs/api-reference/next/link) with Material UI.

- The first version of the adapter is the [`NextLinkComposed`](https://github.com/mui/material-ui/blob/-/examples/material-ui-nextjs-ts/src/Link.tsx) component.
- The first version of the adapter is the [`NextLinkComposed`](https://github.com/mui/material-ui/blob/-/examples/material-ui-nextjs-pages-router-ts/src/Link.tsx) component.
This component is unstyled and only responsible for handling the navigation.
The prop `href` was renamed `to` to avoid a naming conflict.
This is similar to react-router's Link component.
Expand Down
4 changes: 2 additions & 2 deletions docs/src/modules/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { LANGUAGES_IGNORE_PAGES } from 'docs/config';
* File to keep in sync with:
*
* - /docs/src/modules/components/Link.tsx
* - /examples/material-ui-nextjs/src/Link.js
* - /examples/material-ui-nextjs-ts/src/Link.tsx
* - /examples/material-ui-nextjs-pages-router/src/Link.js
* - /examples/material-ui-nextjs-pages-router-ts/src/Link.tsx
*/

// Add support for the sx prop for consistency with the other branches.
Expand Down
5 changes: 5 additions & 0 deletions packages/markdown/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ function renderInline(markdown) {
// Help rank mui.com on component searches first.
const noSEOadvantage = [
'https://m2.material.io/',
'https://m3.material.io/',
'https://material.io/',
'https://getbootstrap.com/',
'https://icons.getbootstrap.com/',
'https://pictogrammers.com/',
Expand All @@ -238,6 +240,9 @@ const noSEOadvantage = [
'https://heroicons.com/',
'https://react-icons.github.io/',
'https://fontawesome.com/',
'https://www.radix-ui.com/',
'https://react-spectrum.adobe.com/',
'https://headlessui.com/',
];

/**
Expand Down

0 comments on commit 74e7a94

Please sign in to comment.