-
Notifications
You must be signed in to change notification settings - Fork 339
Make it possible to put the entire site toctree in the left sidebar and populate the header with custom links #944
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
Comments
Also tagging @nabobalis as he has taken the lead on the refactor of the sunpy sphinx theme on top of the sphinx book theme. |
Related to this issue, I have a doubt about this statement:
In my case the structure of my package is similar to the following:
And in header links, I only get a link to the top level element, in this case, "my_package", and I would like to have quick access from this bar, to the different subpackages. Would it be possible to modify the "depth", as can be done in toc, or manually add the links to these subpackages? |
Hello Guys, Taking a cue from above example. I have a function1 as permalink in module1 below . |
Context
Currently, the top-level sections of your documentation will become links in the header, and the left sidebar will only show the sub-sections for the active top-level section.
However, we've now seen many themes that instead want to define their own custom links in the top-level header, and then put the entire documentation structure in the left sidebar (similar to how a traditional Sphinx site works).
In this case, what sites usually do is add custom templating to the Sphinx Book Theme. Sites often use this in order to have the same theme across subsets of your documentation. for example:
Proposal
We could make it possible for people to achieve this effect without using a different theme by making two changes:
The text was updated successfully, but these errors were encountered: