pradyunsg / furo

A clean customizable documentation theme for Sphinx
https://pradyunsg.me/furo/quickstart
MIT License
2.69k stars 309 forks source link

Hide "Contents" on pages with multiple TOC trees #613

Closed jdknight closed 4 months ago

jdknight commented 1 year ago

If a document has more than one TOC tree directive and no other headings on the page, an empty "Contents" section is rendered in the sidebar. Adjusting the hide-toc logic to check if all entries in the TOC tree are all local TOC tree entries.

pradyunsg commented 1 year ago

Do you have an example documentation set for me to try before/after on?

(if you could post screenshots, even better)

jdknight commented 1 year ago

Do you have an example documentation set for me to try before/after on?

This documentation with this render (if that helps).