-
Notifications
You must be signed in to change notification settings - Fork 352
-
Hi all,
in our project the toc is quite large with documents with numerous chapters/subchapters etc. For better navigation it would be nice to have the ability to make the toc bar collapsible similar as it is already available for the nav-bar with collapse_navigation=True
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 4 comments
-
Hey @ramevaf 👋🏽, thanks for the suggestion.
This is a duplicate of #1876, which we have on our radar.
As mentioned in that issue, it would be nice to implement this, but we do not have an ETA on our end (we also welcome any contributions from the broader community if you are interested).
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello @trallard
I think the issue you mentioned is not the same. My request is about having each element inn the toc tree collapsible:
Here is one example:
grafik
The issue you mentioned is about hiding the right toc panel in general if I get it correctly.
Beta Was this translation helpful? Give feedback.
All reactions
-
Oh, sorry, my bad yes, you are right, @ramevaf.
Do you have a, by any chance a link to your docs? If not I am sure I can find other sites with this issue.
Beta Was this translation helpful? Give feedback.
All reactions
-
My docs are not available but I can share a small example I build which shows how I did it. In there is a collapse_toc.js
which does the toc collapsing. I am using the sphinx_book_theme which is based on pydata but I think there should be no difference in that regard. Hope this helps
build.zip
Beta Was this translation helpful? Give feedback.