-
Notifications
You must be signed in to change notification settings - Fork 7
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
Navigation breaks when using href on Top-Level toc.yml #11
Comments
I'll have a look at this, but have you tried using the folder path instead of the toc path, like so: https://github.com/Singulink/Singulink.IO.FileSystem/blob/master/Docs/toc.yml |
Actually, I realize what the issue is here. Our template is designed for the first level of navigation to point to a folder, and once you click on that, the "subnavigation" appears below. Can you give that a try to see if that works for your scenario? If you want/need multiple levels of main navigation in-place then I will need to decide how to handle that, i.e. showing it all in the nav or having a popup or whatnot. |
Yes, I can confirm that removing the "toc.yml" from the path fixed the navigation.
No Problem, I think you could handle the "toc.yml" navigation the same as with "normal" subfolders specified :) Cheers |
Thanks :) I will probably come up with a solution here with expandable main nav sections for people that want that so I'll leave this issue open until that is done. Might as well offer the flexibility. |
This issue is open for someone to PR if they want to take a stab at it. |
So my top-level
toc.yml
looks like this:when generating with the "modern" template this works correctly and creates dropdowns accordingly :
But it seems with this template there is weird behaviour on the Navigation and the sub-navigation disappears completely:
The weird thing is I didnt see any errors logged in the browser console..
But I will gladly provide more information. Let me know :)
The text was updated successfully, but these errors were encountered: