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

toctree with 2 levels does not show second level #197

Open
linawolf opened this issue Dec 4, 2022 · 1 comment
Open

toctree with 2 levels does not show second level #197

linawolf opened this issue Dec 4, 2022 · 1 comment

Comments

@linawolf
Copy link
Collaborator

linawolf commented Dec 4, 2022

will provide a test for that one as well

@linawolf
Copy link
Collaborator Author

linawolf commented Dec 4, 2022

https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree

This directive inserts a “TOC tree” at the current location, using the individual TOCs (including “sub-TOC trees”) of the documents given in the directive body. Relative document names (not beginning with a slash) are relative to the document the directive occurs in, absolute names are relative to the source directory. A numeric maxdepth option may be given to indicate the depth of the tree; by default, all levels are included.

However in the rst-parser a toctree does not render more then one level of pages (does not render the “sub-TOC trees”)

Instead the maxdepth directive was applied to the additional titles found on pages of level 1

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