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] Use demo name as codesandbox name #22926

Merged
merged 4 commits into from
Oct 8, 2020
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Oct 7, 2020

Includes the demo name in the codesandbox and page title. Also includes the currently used docs language for more accurate repros.

Note that this only works when the sandbox is opened in a new window. The integrated view has a non-descriptive UUID-like title. Possibly due to codesandbox/codesandbox-client#4983.

@eps1lon eps1lon added the docs Improvements or additions to the documentation label Oct 7, 2020
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<div id="root"></div>
</body>
'public/index.html': `
Copy link
Member Author

Choose a reason for hiding this comment

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

See codesandbox/codesandbox-client#4737. Old sandboxes are fine since they only use body. Once we want to use head we need to have it in public/index.html.

Benefit: Now also works when downloaded though we've never heard anyone complain.

@mui-pr-bot
Copy link

mui-pr-bot commented Oct 7, 2020

No bundle size changes comparing d08a755...f991de4

Generated by 🚫 dangerJS against f991de4

@eps1lon
Copy link
Member Author

eps1lon commented Oct 7, 2020

I'll leave this open till the end of the week in case we get a response to codesandbox/codesandbox-client#4983.

@eps1lon eps1lon added on hold There is a blocker, we need to wait and removed on hold There is a blocker, we need to wait labels Oct 7, 2020
@eps1lon eps1lon merged commit 7217262 into mui:next Oct 8, 2020
@eps1lon eps1lon deleted the docs/demo-title branch October 8, 2020 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants