Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/furo/__init__.py
Expand Up @@ -74,8 +74,8 @@ def has_not_enough_items_to_show_toc(
except IndexError:
val = True
else:
# There's only the page's own toctree in there.
val = len(self_toctree) == 1 and self_toctree[0].tagname == "toctree"
# There's only the page's own toctree(s) in there.
val = all(entry.tagname == "toctree" for entry in self_toctree)
return val


Expand Down