-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Rewrite sidebar TOC generation to be recursive #115
base: master
Are you sure you want to change the base?
Conversation
Currently, sidebar TOCs only assume one level of nesting, and don't obey excludes. This leads to both missing items and unexpected items that should have been excluded. * Rewrite it to be recursive, such that all subsections are generated and appended as children. * Also obey excludes and don't add anchors for them. There was also a fixture for nested sections, but no corresponding test. Used that fixture to test this out. (I've also verified that it works against nextest's site.)
I tested it and it seem to work pretty great for me! |
(I personally would prefer a different numbering scheme btw, but that is a separate consideration) |
Thanks for taking the effort to tackle this tricky topic ! Really appreciate it. Couple of comments:
Would you mind making the updates? |
I fixed the merge conflict. @sunshowers could you have a look at the other comment? |
Thanks, sorry I completely missed this because I fell sick in between :( I tried doing some small updates and bringing this up-to-date with master, but ran into merge conflicts that I don't have time to resolve. I'd still really love to have this but I don't quite have time to work on it at the moment, work is too busy. I like the 1.1 scheme. Please feel free to make changes to this and land this as you see fit. I might have time later this year, but please don't count on it. |
If you can handle the CSS bits (I couldn't really follow them) I can probably take care of the Python. Does that sound okay? |
Sure |
This should close #123 also |
Hi there, and thanks for maintaining this plugin!
Currently, sidebar TOCs only assume one level of nesting, and don't obey excludes. This leads to both missing items and unexpected items that should have been excluded.
There was also a fixture for nested sections, but no corresponding test. Used that fixture to test this out. (I've also verified that it works against nextest's site.)
The result goes from:
to:
I believe this should fix #111 and #83.