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

The sidebar does not expand when the ToC depth is limited #167

Open
petsuter opened this issue Feb 18, 2020 · 1 comment
Open

The sidebar does not expand when the ToC depth is limited #167

petsuter opened this issue Feb 18, 2020 · 1 comment

Comments

@petsuter
Copy link

Describe the bug
The sidebar does not expand when the ToC depth is limited.

To Reproduce
Steps to reproduce the behavior:

  • sphinx-quickstart and select all defaults (Alabaster theme)
  • Change / create these files:
  • index.rst:
 .. toctree::
   :maxdepth: 1
   
   sub/index
  • sub/index.rst:
Sub
===

.. toctree::
   :maxdepth: 1
   
   topic
  • sub/topic.rst:
Subtopic
========

test
$ make html
  • Open _build/html/index and see everything looks fine. The sidebar on the left shows "Sub". Also the ToC in the middle shows "Sub". All looks OK.
  • Click "Sub" and see ToC in the middle shows "Subtopic" as expected. But the problem is the sidebar still only shows "Sub". It did not expand and does not show "Subtopic"!

test-sphinx.zip
sphinx-doc/sphinx#7171

Expected behavior
The sidebar should expand, even if :maxdepth: is used.

Environment info

  • OS: Windows 10
  • Python version: 3.7.1
  • Sphinx version: 2.4.1
  • Sphinx extensions: None
@petsuter
Copy link
Author

This is still a problem in Sphinx 3.1.1 / Alabaster 0.7.12

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

No branches or pull requests

1 participant