-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 duplicate entries in nav.html and default.html #239
Fix duplicate entries in nav.html and default.html #239
Conversation
This commit resolves just-the-docs#207.
Removes children from the table of contents that belong to a different page with the same title.
@pdmosses could you take a look at this? Does this make sense to you? |
@pmarsceill I'll take a look and let you know |
@pmarsceill I added test files (locally) for the example shown in #207 and it gives the correct navigation hierarchy, using the In fact I'd experienced the bug in a previous project of my own, but circumvented it by making all the titles unique. Note that the recursive navigation proposal #192 doesn't involve |
@pmarsceill oops, the entries of the automatic TOCs for children are missing! For example, select |
@pmarsceill I've found what I think is the bug in
Should I commit that change to KasparEtter's fork? |
@pmarsceill in fact only the last line above, assigning to |
@pdmosses is this good to merge into 0.2.9 now? |
@pmarsceill looking at it now, I noticed that the list of grandchildren in the nav uses I have a local test directory with grandchildren; I'll expand it to check whether I can make it get the order wrong, and let you know. |
Changed `site.html_pages` to `pages_list`, to repeat the nav order of the grandchildren in the nav panel.
My suspicion was justified: in my local test with grandchildren, the nav order was not respected. The update I committed appears to have corrected that. |
@pmarsceill good to merge into 0.2.9 now, I believe. |
This commit resolves #207.