-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
In JS docs, use Note: consistently at the start of notes #4504
Conversation
@wbamberg
Why?
PS I've been moving most things I work on to this for some months. |
FWIW I really don't like using headings for this. I think headings make promises about page structure and hierarchy, and I don't think notes should participate in page structure. But, that's kind of irrelevant because they're going away anyway. The purpose of this PR is to make our JS notes more consistent, so a conversion process can handle them without a hundred special cases. There are 231 instances of
So if I changed them all to use H2-H6 I'd have to rewrite almost every note. Of the 215 |
Sure. If you're just talking about JS and the timeline for conversion is relatively short 100% agree. |
I just pushed a couple more changes, and I think now, all the
|
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.
LGTM! Just one question if it is warning or note
@@ -56,7 +56,7 @@ <h3 id="Iteration_using_.next">Iteration using .next()</h3> | |||
iteraror.next().value; // undefined </pre> | |||
|
|||
<div class="notecard warning"> |
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.
Note or warning?
<div class="notecard warning"> | |
<div class="notecard note"> |
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.
Oh this is my mistake. That was a warning so I should not have touched it.
This PR was inspired by this subthread: #4352 (comment) and it edits the JS docs to try to use "Note:" consistently at the start of notes. This should make it easier for a Markdown conversion process to convert these things.