]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Retain shorter tables of contents for Sphinx 5.2.3+ (#114318)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Fri, 19 Jan 2024 18:52:42 +0000 (20:52 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2024 18:52:42 +0000 (18:52 +0000)
Disable toc_object_entries, new in Sphinx 5.2.3

Doc/conf.py

index dc09b0b51ca84c608bbb5fb64dcbd12ec098a21c..458954370debe28969066c5a55043f0a318807c8 100644 (file)
@@ -74,6 +74,10 @@ highlight_language = 'python3'
 # Minimum version of sphinx required
 needs_sphinx = '4.2'
 
+# Create table of contents entries for domain objects (e.g. functions, classes,
+# attributes, etc.). Default is True.
+toc_object_entries = False
+
 # Ignore any .rst files in the includes/ directory;
 # they're embedded in pages but not rendered individually.
 # Ignore any .rst files in the venv/ directory.