You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should make the sidebar behave as desired, even when the local TOC's are limited like this:
.. toctree::
:maxdepth: 1
sub/index
Describe alternatives you've considered
I've tried many combinations of the existing theme options, toctree directive options, :tocdepth:, :titlesonly:, :hidden:, :includehidden:, globaltoc_collapse, collapsiblesidebar etc.
Is your feature request related to a problem? Please describe.
It is currently impossible to configure the sidebar TOC to collapse and expand to the current page, while also limiting the local TOC to depth 1.
Small example project from #7171
Describe the solution you'd like
The
globaltoc_maxdepth
theme option should allow configuring the sidebar independently from the local TOC.Then:
should make the sidebar behave as desired, even when the local TOC's are limited like this:
Describe alternatives you've considered
I've tried many combinations of the existing theme options, toctree directive options,
:tocdepth:
,:titlesonly:
,:hidden:
,:includehidden:
,globaltoc_collapse
,collapsiblesidebar
etc.Additional context
The text was updated successfully, but these errors were encountered: