mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix numbering section at singlehtml mode does not work for nested toctree
This commit is contained in:
@@ -395,10 +395,12 @@ def test_tocdepth(app):
|
||||
'bar.html': [
|
||||
(".//h1", '2. Bar', True),
|
||||
(".//h2", '2.1. Bar A', True),
|
||||
(".//h3", '2.1.1. Bar A1', True),
|
||||
(".//h2", '2.2. Bar B', True),
|
||||
(".//h3", '2.2.1. Bar B1', True),
|
||||
],
|
||||
'baz.html': [
|
||||
(".//h1", '2.1.1. Baz A', True),
|
||||
],
|
||||
}
|
||||
|
||||
for fname, paths in iteritems(expects):
|
||||
@@ -438,9 +440,11 @@ def test_tocdepth_singlehtml(app):
|
||||
# bar.rst
|
||||
(".//h2", '2. Bar', True),
|
||||
(".//h3", '2.1. Bar A', True),
|
||||
(".//h4", '2.1.1. Bar A1', True),
|
||||
(".//h3", '2.2. Bar B', True),
|
||||
(".//h4", '2.2.1. Bar B1', True),
|
||||
|
||||
# baz.rst
|
||||
(".//h4", '2.1.1. Baz A', True),
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user