Skip to content

Commit 7e79a20

Browse files
hugovkmiss-islington
authored andcommitted
Retain shorter tables of contents for Sphinx 5.2.3+ (pythonGH-114318)
Disable toc_object_entries, new in Sphinx 5.2.3 (cherry picked from commit 229ee5b) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent ae2a25b commit 7e79a20

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
# Minimum version of sphinx required
6969
needs_sphinx = '4.2'
7070

71+
# Create table of contents entries for domain objects (e.g. functions, classes,
72+
# attributes, etc.). Default is True.
73+
toc_object_entries = False
74+
7175
# Ignore any .rst files in the includes/ directory;
7276
# they're embedded in pages but not rendered individually.
7377
# Ignore any .rst files in the venv/ directory.

0 commit comments

Comments
 (0)