-
Notifications
You must be signed in to change notification settings - Fork 194
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
RHS table of contents #152
Comments
Notes from discussion on ~ 14 June 2022 AnalaysisKey features
Aside: does this connect with anchor links for headings - #99 Note this was supposed to include nice anchor hovers but not sure that was implemented - note that issue is "bad" as no acceptance criteria, description or anything!
Broken word wrapping bugAs per the closed issue #99, the rehype plugin rehype-autolink-headings added anchor tags to headings. However, since there was no
Now we have this in contentlayer.config:
We used to have this:
BrainstormingHow can we do this?
Proposed solution
Options
|
@olayway one issue with making the heading itself into a link is that you can't have links in the heading ... (i think this is the reason most people have a hover effect with actual link item outside of the text e.g. on the left as an icon). Examples of this behaviour on the news page https://web3.lifeitself.us/notes/news |
Priority over #153
User story
A user can quickly eyeball the contents of the current page by looking at the table of contents (ToC) on the right-hand side. He can also quickly navigate to different sections of the current page by clicking on a section title in the ToC and see where he's currently at thanks to highlighting of the currently focused section.
Inspiration
Tailwind page: https://tailwindcss.com/docs/installation
Acceptance
References
Original issue: #93
The text was updated successfully, but these errors were encountered: