-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix table of contents instances #762
Conversation
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.
Thank you for this! 🚀
Looks like this didn't make it. I'll switch the base branch back to |
Thanks, @simurai. Let's see if updating the branch re-runs actions and makes everything green. If so, we can merge this right to master. |
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.
Tested this on now.sh and it seems that the "Table of Contents" links don't work. I think it's because the links in the toc are lowercase, but the IDs on the page are uppercase.
- Link in toc: https://primer-css-fix-toc.now.sh/css/components/labels#labels
- 🔗 Link icon on the page: https://primer-css-fix-toc.now.sh/css/components/labels#Labels
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.
Awesome, thank you! It's a little bit annoying that the sticky header covers up most of the titles when you link to them, but at least the links work now! 🚀
This PR uses the remark/toc plugin for table of contents on documentation pages, instead of our
Outline
component.