Nested toctree links misplaced between left and right menus/navbars #155
-
Hello @pradyunsg, other maintainers/contributors and Furo's community members. First of all, thank you very much for the awesome theme. Recently I have been facing some trouble with the way Furo decides to split the TOC between the left and the right navbars/menus. I wonder if that could be an issue. This is a description of what is happening with a few images to illustrate:
The .. docs/extensions.rst
...
Examples
========
Some options for the ``putup`` command are already implemented as extensions
and can be used as reference implementation:
.. toctree::
:maxdepth: 2
no-skeleton <examples/no-skeleton-extension>
no-tox <examples/no-tox-extension>
cirrus <examples/cirrus-extension>
gitlab <examples/gitlab-ci-extension>
namespace <examples/namespace-extension>
pre-commit <examples/pre-commit-extension>
... The .. docs/index.rst
...
Contents
--------
.. toctree::
:maxdepth: 2
Why PyScaffold? <reasons>
Features <features>
Installation <install>
Usage & Examples <usage>
Advanced Usage & Features <advanced>
FAQ <faq>
Contributions & Help <contributing>
Contributors <contributors>
Changelog <changelog>
License <license>
Module Reference <api/modules>
... Does anyone know a way around this problem? (Or at least omit the nested links on the toctree to show up on the left navbar?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Separating "in-page content" from "site structure" is an intentional design choice in Furo. What you're doing is adding pages to the site, which is presented in the left sidebar. The right sidebar presents content on the page, which is the headings of the page. I don't believe there's any way to work around this, since Furo explicitly includes all pages in the site sidebar without any user facing knobs (that was an intentional choice as well, to make it easier to maintain and use). The only option that I can think of is restructuring the documentation to more clearly reflect the fact that those are examples, by putting the examples toctree under an "Examples" page. |
Beta Was this translation helpful? Give feedback.
Separating "in-page content" from "site structure" is an intentional design choice in Furo. What you're doing is adding pages to the site, which is presented in the left sidebar. The right sidebar presents content on the page, which is the headings of the page.
I don't believe there's any way to work around this, since Furo explicitly includes all pages in the site sidebar without any user facing knobs (that was an intentional choice as well, to make it easier to maintain and use).
The only option that I can think of is restructuring the documentation to more clearly reflect the fact that those are examples, by putting the examples toctree under an "Examples" page.