mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Increased toctree level.
Some documents are deeply nested.
This commit is contained in:
parent
97fea89ac2
commit
1ab6457436
@ -172,7 +172,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
||||
if isinstance(doctree, nodes.reference):
|
||||
classes = doctree.parent.attributes['classes']
|
||||
level = 1
|
||||
for l in range(5,0,-1): # or range(1,6)?
|
||||
for l in range(8,0,-1): # or range(1,8)?
|
||||
if (_toctree_template % l) in classes:
|
||||
level = l
|
||||
result.append({
|
||||
|
Loading…
Reference in New Issue
Block a user