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

[material-ui][docs-infra] API header doesn't appear in the Button demo doc sidebar #40659

Closed
samuelsycamore opened this issue Jan 17, 2024 · 1 comment · Fixed by #41908
Closed
Labels
component: button This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material scope: docs-infra Specific to the docs-infra product

Comments

@samuelsycamore
Copy link
Contributor

samuelsycamore commented Jan 17, 2024

Noticed this while working on #40446 - at first I thought it was something I broke in that PR, but then I saw that the link to the API section doesn't show up in the sidebar in production either:

Screenshot 2024-01-17 at 4 09 02 PM

https://next--material-ui.netlify.app/material-ui/react-button/

It should be right there under "Unstyled" in the bottom right corner. I'm not sure why this would only be happening on this page—I haven't noticed the issue anywhere else.

Search keywords:

@samuelsycamore samuelsycamore added package: material-ui Specific to @mui/material component: Box The React component. scope: docs-infra Specific to the docs-infra product component: button This is the name of the generic UI component, not the React module! and removed component: Box The React component. labels Jan 17, 2024
@alexfauquette
Copy link
Member

That's because the MarkdownV2 component filters API from the ToC because base UI don't need i (it's in the tab at the top of the page)

const demosToc = localizedDoc.toc.filter((item) => item.text !== 'API');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material scope: docs-infra Specific to the docs-infra product
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants