mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merged in tk0miya/sphinx (pull request #278)
Fix section entries were shown twice if toctree has been put under only directive
This commit is contained in:
commit
956430c3f7
@ -1000,6 +1000,7 @@ class BuildEnvironment:
|
|||||||
if blist:
|
if blist:
|
||||||
onlynode += blist.children
|
onlynode += blist.children
|
||||||
entries.append(onlynode)
|
entries.append(onlynode)
|
||||||
|
continue
|
||||||
if not isinstance(sectionnode, nodes.section):
|
if not isinstance(sectionnode, nodes.section):
|
||||||
for toctreenode in traverse_in_section(sectionnode,
|
for toctreenode in traverse_in_section(sectionnode,
|
||||||
addnodes.toctree):
|
addnodes.toctree):
|
||||||
|
Loading…
Reference in New Issue
Block a user