Skip to content

Make it possible to put the entire site toctree in the left sidebar and populate the header with custom links #944

@choldgraf

Description

@choldgraf

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:

  • Make it possible for the left sidebar to include the full site TOCtree instead of just the second-level items (e.g., via activating a template)
  • Make it possible for the header links to only be external links (maybe with dropdowns as well)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions