-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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-infra] Fix markdown version for material #41908
Conversation
I did the change on purpose in 99acbfb as part of #38410 to improve the performance of the page transition (it's much faster between button pages than between other pages because they share the same layout component, one that doesn't need to remount). I think the fix should go the other way around, fix (@Janpot @michaldudak this is an example of what I have in mind with docs-infra / code-infra / other-infra changes being propagated everywhere in the codebase: breaking changes goes into new APIs, until enough MUI X, Toolpad, projects migrated) |
100% agreed. All changes should be opt-in until all repositories have migrated. imo, this shouldn't apply only to internal code, we could benefit from organizing the versioning of our public code around the same philosophy. Any breaking change is introduced opt-in before a major version makes it the default. |
I agree with the principle of having the change opt-in. But this implies encouraging the team to move on those topics. Otherwise, we end up with 2 to the power the number of migrations not fully done. For example, Markdown/MarkdownV2 has existed for more than a year, and I assume few people care/know about it. At least with the infra team we now have devs in each team aware of the modification, but opening issues and setting deadlines could help to avoid accumulating those |
The purpose of the opt-in behavior is to improve collaboration. To allow multiple people make breaking changes concurrently without requiring a release cadence. It is not to be used as a way to produce migration work for other teams. I think the most effective way to enforce this is to establish end-to-end ownership of a feature. Ideally the person who builds the new feature also propagates it to dependent projects, either by actually coding it themselves or serving as a liaison for someone on the dependent team. |
Netlify deploy previewhttps://deploy-preview-41908--material-ui.netlify.app/ Bundle size report |
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.
Looks good 👍
Suggestion could be to prefer polymorphism over conditionals here. i.e. use something like a headers.hasApiSection
flag over checking the product id. But conditionals on product id are already all over the place, so... yeah 🤷
Yes, I thought about it, more like |
Fix #40659
I prevent the
prepareMarkdown
from adding the API section, such that the MarkdownV2 does not have to use hack to remove this section the the table of content and not rendering the last markdown content