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

[core] Refactor how we ignore default values in docs #22355

Merged
merged 2 commits into from Aug 25, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 25, 2020

We currently strip default values from the API docs if their source including the markup we add exceeds 180 characters. I don't think this is intended. It seems like this is to prevent breaking the table layout (or generally only to keep readable default values) in which case we should only look at the source without added markup.

This doesn't affect the generated docs but the clarification is important for default values in JSDOC.

@eps1lon eps1lon added the core Infrastructure work going on behind the scenes label Aug 25, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Aug 25, 2020

No bundle size changes comparing afac5cd...5fed30d

Generated by 🚫 dangerJS against 5fed30d

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

The assumptions sound about right, I have to admit, this part of the codebase feels like I didn't write it, I don't remember it.

Co-authored-by: Matt <github@nospam.33m.co>
@eps1lon
Copy link
Member Author

eps1lon commented Aug 25, 2020

The assumptions sound about right, I have to admit, this part of the codebase feels like I didn't write it, I don't remember it.

Probably moved around over time until the original intention got lost.

@eps1lon eps1lon merged commit f8f1a44 into mui:next Aug 25, 2020
@eps1lon eps1lon deleted the docs/refactor-ignoring-large-default branch August 25, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants