-
-
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] Format english markdown files #21463
Conversation
Details of bundle changes.Comparing: a8b54b7...8bfa773 Details of page changes
|
a31489c
to
c008b55
Compare
React.forwardRef((linkProps, ref) => ( | ||
<Link ref={ref} to={to} {...linkProps} /> | ||
)), | ||
() => React.forwardRef((linkProps, ref) => <Link ref={ref} to={to} {...linkProps} />), |
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.
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.
That makes sense.
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.
Reduced to 60 characters for docs/**/*.md
: https://deploy-preview-21463--material-ui.netlify.app/guides/composition/
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.
@oliviertassinari This is also an issue for demos. I think we should fix them in this PR as well to reduce diff noise. Basically apply printWidth: 60
to 'docs/src/pages/**/*.{js,tsx}'
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.
I'm fairly confident that these changes mostly won't impact Crowdin. The exception would be code formatting, but even there, code examples are mostly hidden (unless they contain comments that need to be translated)
Merging before we get a conflict :) |
Which would've been my problem. There was still an open issue |
Closes #14792
Need to check each diff visually. We had some formatting that was only working in our docs but wasn't actually working in other markdown formatters like we think it did (e.g. GitHub, prettier). The plan is that each visual diff in github shows "no visible changes here" (visual code changes should be fine).Looks goodNote:
Prettier requires 3 spaces instead of 2 for codeblocks and paragraphs that belonged to listitem. We indented them with 2 spaces. They need to be indented by 3:
Before
Valid render:
an item
After:
Valid render:
an item