summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-12-29 06:07:51 +0100
committerGitHub <noreply@github.com>2022-12-29 06:07:51 +0100
commit279967ec859a9a5240318cf29a077539b0e3139f (patch)
treeaae94ecaa2f12b12c98953354ed73717e9c54525 /docs/conf.py
parent7eee1dca420ee7c4451d24cd32fa08aed0dcbb36 (diff)
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.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 8bb6530b75..1805e92e14 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -97,6 +97,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"