-
-
Notifications
You must be signed in to change notification settings - Fork 4.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: Simplify hierarchy of headings in rule pages #5198
Docs: Simplify hierarchy of headings in rule pages #5198
Conversation
By analyzing the blame information on this pull request, we identified @gyandeeps, @IanVS and @mathieumg to be potential reviewers |
@@ -20,7 +18,7 @@ This rule takes 1 or 2 arguments. The first one is a string which must be one of | |||
|
|||
The second one is an object for more fine-grained configuration when the first option is "all". | |||
|
|||
#### "all" | |||
### "all" |
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.
This is probably for the next pass, but it looks like in most place we use code brackets for options as in all
and not double quotes.
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.
We should try to format options the way they actually are in the config file, so strings should be in quotes, and nonstrings should be in code font.
This is so awesome! Can't thank you enough for this work! |
9fb1397
to
3ec44cd
Compare
Thank you for the tip how to move forward. The green check looks so much better than the red x. Still early in moving from closed to open source, each step stretches me in some way. Starting the journey with rackt and eslint have both been supportive community and worthwhile purpose. |
@pedrottimark It looks like something caused a merge conflict with this PR. Could you rebase please? I was about to merge it, but can't do that without rebase... |
@ilyavolodin Sure, I need to learn how to rebase because of changes. Starting right now. Will let you know if I get stuck ;) |
Awesome, thanks! Let me know if you need any help, I'll be happy to walk you through rebasing process. |
@ilyavolodin A bit of help. git rebase found one conflict because Options had been deleted from no-empty.md which I had not edited. I edited to delete the conflict-marked area, git add, and git rebase --continue which succeeded. git log for the branch now shows 3 commits: from me, mysticatea, and nzakas. So I am not sure whether I can now git push, or do I need to squash them? |
That shouldn't happen with rebase. Did you run |
@ilyavolodin Thank you. My bad, here is what I did 😳 |
Sorry, I got a bit destructed here. Can you try the following in your local branch: git reset --hard origin simplify-hierarchy-in-rules
git remote add upstream git@github.com:eslint/eslint.git (might need to change this to https if you are not using ssh)
git remote -v (should display two origin and two upstream urls)
git pull --rebase upstream master
git mergetool (will open vi most likely for you to edit merge conflicts, save and close once you are done)
git rebase --continue
git push -f origin simplify-hierarchy-in-rules I think that should do it. I can do a full merge myself, but I haven't done that in Github before and I'm not sure how it's going to end up in the logs. |
3ec44cd
to
2bc40fa
Compare
@ilyavolodin Thank you for investing the time to give me that lesson. Except for adding a slash origin/simplify-hierarchy-in-rules and I will need to configure my git mergetool, it went well. Hard for me to see from the Details why the AppVeyor build failed. I have been planning the remaining changes for low-frequency headings. Because that will affect 15 to 20 files, I am thinking better to wait until next week. |
AppVeyor is having an issue downloading PhantomJS, so not related to your changes at all. Travis had the same issue on the master build earlier. Thanks a lot of doing this work! |
Docs: Simplify hierarchy of headings in rule pages
Yay for consistency. Thanks, @pedrottimark! |
@IanVS You’re welcome. If “a foolish consistency is the hobgoblin of little minds” mine is foolish and little enough. If you can’t fix it, feature it, eh? |
As another step toward a recommended structure for rules pages, reduce the number of depth distinctions in headings to eliminate inconsistencies in depth h2 versus h3.
Because these changes prefer less depth, they also lean toward a potential goal that each page displays a table of contents, suggested by @IanVS in eslint/archive-website#186 (comment)
86 files changed:
For comparison, no h5 and the only h4 outside rules are 27 occurrences in user-guide/command-line-interface.md
Changes to anchors:
The next goal is consistent punctuation of options in h3 elements.