Skip to content
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

[docs] Fix redirection to GitHub example view #4642

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation bug 🐛 Something doesn't work labels Jan 29, 2025
Comment on lines -112 to +111
source: 'https://github.com/mui/toolpad/tree/master/examples/core/tutorial/',
source: 'https://github.com/mui/toolpad/tree/master/examples/core/tutorial',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub supports both, they have no care for forcing one over the other, it's so cheap, lol, not even a canonical link.
In any case, here, we can use what their links default to.

x same as for the other diffs.

href={versionGitHubLink(example.href)}
href={example.href}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

href are live demos, no need to handle them. It's only relevant for source.

@mui-bot
Copy link

mui-bot commented Jan 29, 2025

Netlify deploy preview

https://deploy-preview-4642--mui-toolpad-docs.netlify.app/

Generated by 🚫 dangerJS against a0437b7

@oliviertassinari oliviertassinari merged commit f20fd55 into mui:master Jan 30, 2025
15 of 16 checks passed
@oliviertassinari oliviertassinari deleted the fix-redirect-github branch January 30, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants