Skip to content
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

Allow changing of sidebar navigation depth #65

Open
timostroehlein opened this issue Sep 2, 2024 · 3 comments
Open

Allow changing of sidebar navigation depth #65

timostroehlein opened this issue Sep 2, 2024 · 3 comments

Comments

@timostroehlein
Copy link

timostroehlein commented Sep 2, 2024

It would be great if we would be able to specify a custom depth for the navigation sidebar. Currently it only shows the first two levels, showing any deeper levels does not work. It should basically work like the navigation_depth option in the PyData Theme

@lepture
Copy link
Owner

lepture commented Sep 6, 2024

https://shibuya.lepture.com/customisation/sidebar/

Does globaltoc_expand_depth works for you?

@timostroehlein
Copy link
Author

Sorry, I thought I found the issue but I was only able to partially solve it. It seems like the navigation depth in the sidebar is dependant on the toctree maxdepth

.. toctree::
   :maxdepth: 3

This isn't really ideal, since we always want to show the full navigation depth in the sidebar, but on the page itself we also want to show the toctree, but with a different maxdept. So my suggestion above still applies, it would be great to have a separate property which defines the sidebar navigation depth

@timostroehlein
Copy link
Author

https://shibuya.lepture.com/customisation/sidebar/

Does globaltoc_expand_depth works for you?

No that doesn't really work, it will ignore the setting if the toctree depth of the root index.rst is set to 1 for example. What I need is a setting which basically ignore the toctree setting of each page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants