readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.81k stars 1.74k forks source link

Toctree nesting is not accurate #1158

Closed humitos closed 3 months ago

humitos commented 3 years ago

Problem

Toctree nesting show sub-titles under the wrong title.

Reproducible Project

In https://sphinx-hoverxref.readthedocs.io/en/latest/configuration.html you can see the following HTML structure:

Error Logs/Results

However, the left toctree shows a different one where all the dl are shown under h2: MicroModal.js. See the following screenshot:

Screenshot_2021-06-07_16-46-26

Expected Results

Create the toctree on the left bar following the same structure of the HTML.

Environment Info

Blendify commented 3 years ago

I am not sure this is a bug in the theme looks more like an issue with sphinx because the generated HTML is wrong:

humitos commented 3 years ago

OK. I'll find a time later and report it there. Thanks!

humitos commented 3 months ago

I'm not able to reproduce this issue anymore.