Skip to content

Commit 711a4a0

Browse files
committed
add autosectionlabel
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
1 parent 23f863f commit 711a4a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sphinx_astropy/conf/v2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
# ones.
185185
extensions = [
186186
'sphinx.ext.autodoc',
187+
"sphinx.ext.autosectionlabel",
187188
'sphinx.ext.coverage',
188189
'sphinx.ext.inheritance_diagram',
189190
'sphinx.ext.intersphinx',
@@ -217,6 +218,8 @@
217218
# class' docstring
218219
numpydoc_show_class_members = False
219220

221+
autosectionlabel_prefix_document = True
222+
220223
autosummary_generate = True
221224

222225
automodapi_toctreedirnm = 'api'

0 commit comments

Comments
 (0)