sphinx icon indicating copy to clipboard operation
sphinx copied to clipboard

`toctree` directive leads to multi-selected entries in sidebar-toc

Open mikethebeer opened this issue 10 years ago • 1 comments

Hi,

I'm using the toctree element in a sidebar to list all available pages and mark the current page as bold. In one of the pages (site_a.txt) I use the .. toctree:: directive to refer and link on a toc of an other site (site_b.txt).

.. toctree::

  site_b

So far so good. However, when the current page is site_b it highlights also site_a in the sidebar-toctree because site_a is containing a toctree directive (see listing above).

Is this related to a bug or am I do something wrong here? Thanks.

mikethebeer avatar Mar 25 '16 10:03 mikethebeer

Do you have an example that you can provide for reproducibility?

jdillard avatar May 28 '26 22:05 jdillard