Merge pull request #6063 from tk0miya/4261_autosectionlabel_max_depth

Add autosectionlabel_max_depth config option
This commit is contained in:
Takeshi KOMIYA
2019-02-14 01:12:05 +09:00
committed by GitHub
6 changed files with 78 additions and 3 deletions

View File

@@ -38,3 +38,10 @@ Configuration
called ``Introduction`` that appears in document ``index.rst``. Useful for
avoiding ambiguity when the same section heading appears in different
documents.
.. confval:: autosectionlabel_maxdepth
If set, autosectionlabel chooses the sections for labeling by its depth. For
example, when set 1 to ``autosectionlabel_maxdepth``, labels are generated
only for top level sections, and deeper sections are not labeled. It
defaults to ``None`` (disabled).