Skip to content

Commit 5d1a51b

Browse files
committed
Reintroduce autosection labels
1 parent c827c55 commit 5d1a51b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
"sphinx.ext.napoleon",
3636
"sphinx.ext.intersphinx",
3737
"sphinx.ext.autosummary",
38+
"sphinx.ext.autosectionlabel",
3839
"sphinx_copybutton",
3940
]
4041

4142
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
4243

4344
# Make sure the target is unique
45+
autosectionlabel_maxdepth = 1
4446
autosectionlabel_prefix_document = True
4547
source_suffix = {
4648
".rst": "restructuredtext",

0 commit comments

Comments
 (0)