From b381ab4906cdff0ebb4e1c6c8e30996f24be6829 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 29 Dec 2022 06:07:51 +0100 Subject: [PATCH] [3.2.x] Disabled auto-created table of contents entries on Sphinx 5.2+. Auto-created table of contents entries for all domain objects (e.g. functions, classes, attributes, etc.) were added in Sphinx 5.2, see https://github.com/sphinx-doc/sphinx/issues/6316. An option to control new table of contents entries was added in Sphinx 5.2.3, see https://github.com/sphinx-doc/sphinx/pull/10886. Backport of 279967ec859a9a5240318cf29a077539b0e3139f from main --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index fabe91cc38..42d350052c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -73,6 +73,10 @@ source_suffix = '.txt' # The root toctree document. root_doc = "contents" +# Disable auto-created table of contents entries for all domain objects (e.g. +# functions, classes, attributes, etc.) in Sphinx 5.2+. +toc_object_entries = False + # General substitutions. project = 'Django' copyright = 'Django Software Foundation and contributors'