Skip to content

Commit 85a12e2

Browse files
authored
Define the code-py role in autosectionlabel.rst (#13819)
1 parent 6c9e320 commit 85a12e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/usage/extensions/autosectionlabel.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
.. versionadded:: 1.4
1010

11+
.. role:: code-py(code)
12+
:language: Python
13+
1114
By default, cross-references to sections use labels (see :rst:role:`ref`).
1215
This extension allows you to instead refer to sections by their title.
1316

0 commit comments

Comments
 (0)