-
-
Notifications
You must be signed in to change notification settings - Fork 57
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: add anchors for blogs #271
Conversation
✅ Deploy Preview for es-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for new-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for ja-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for hi-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for pt-br-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for cn-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for fr-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks for looking at this. Because this is only targeting blog posts, could all of the changes be made to layouts/post.html instead? That way everything that is post-specific is in one file. |
bump for review |
src/assets/js/main.js
Outdated
@@ -89,3 +89,7 @@ | |||
}); | |||
} | |||
})(); | |||
|
|||
document.addEventListener("DOMContentLoaded", () => { |
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.
Can you also move this into post.html as an inline script? This causes an error on non-blog post pages now.
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.
Done
@harish-sethuraman please don't bump for review. :) I already get notifications when pull requests are updated. If for some reason you don't get a response after a week, then it's appropriate to ask again. |
Thanks. Just a note: in this repo, we don’t prefix everything with “docs:”, that’s just in the eslint repo. |
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
Fixes eslint/eslint#16128
[x] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
Added anchor-js library and add anchors for headings inside docs
Is there anything you'd like reviewers to focus on?
check if any other element is getting anchors. I verified that table of content was h2 and was getting the anchor so I've move it to be a paragraph text and added font-weight alone to match the styling. If you are aware of any other elements like that need help. I verified once 😅 and everything seems to work fine