From 229ee5bea1fb8f9de1f4d29397634cd3a433fb8d Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 19 Jan 2024 20:52:42 +0200 Subject: [PATCH] Retain shorter tables of contents for Sphinx 5.2.3+ (#114318) Disable toc_object_entries, new in Sphinx 5.2.3 --- Doc/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/conf.py b/Doc/conf.py index dc09b0b51ca84c..458954370debe2 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -74,6 +74,10 @@ # 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.