mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix the case where a toctree doesn't contain anything.
This commit is contained in:
parent
30b17cb1e5
commit
9fb011bd2a
@ -722,7 +722,7 @@ class BuildEnvironment:
|
||||
entries.append(toc)
|
||||
if entries:
|
||||
return addnodes.compact_paragraph('', '', *entries)
|
||||
return None
|
||||
return []
|
||||
|
||||
def _walk_depth(node, depth, maxdepth, titleoverrides):
|
||||
"""Utility: Cut a TOC at a specified depth."""
|
||||
|
Loading…
Reference in New Issue
Block a user