From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 19 Jan 2024 18:52:42 +0000 (+0200) Subject: Retain shorter tables of contents for Sphinx 5.2.3+ (#114318) X-Git-Tag: v3.13.0a4~414 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=229ee5bea1fb8f9de1f4d29397634cd3a433fb8d;p=thirdparty%2FPython%2Fcpython.git Retain shorter tables of contents for Sphinx 5.2.3+ (#114318) Disable toc_object_entries, new in Sphinx 5.2.3 --- diff --git a/Doc/conf.py b/Doc/conf.py index dc09b0b51ca8..458954370deb 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -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.