https://github.com/python/cpython/commit/9efe6b0ee803da54c5f45b2a9db8839f355001ae
commit: 9efe6b0ee803da54c5f45b2a9db8839f355001ae
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-26T18:58:22Z
summary:

[3.13] gh-57491: Reduce the EPUB table of contents depth to 2 (GH-158105) 
(#158251)

Co-authored-by: Danishk2445 <[email protected]>

files:
A Misc/NEWS.d/next/Documentation/2026-09-24-10-10-15.gh-issue-57491.UA-2uN.rst
M Doc/conf.py

diff --git a/Doc/conf.py b/Doc/conf.py
index 8ad36c71b01640d..cf1df060e2bf51d 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -462,6 +462,10 @@
 # https://github.com/sphinx-doc/sphinx/issues/12359
 epub_use_index = False
 
+# The default depth of 3 lists over a thousand entries, which makes the
+# table of contents hard to navigate in e-book readers
+epub_tocdepth = 2
+
 # translation tag
 # ---------------
 
diff --git 
a/Misc/NEWS.d/next/Documentation/2026-09-24-10-10-15.gh-issue-57491.UA-2uN.rst 
b/Misc/NEWS.d/next/Documentation/2026-09-24-10-10-15.gh-issue-57491.UA-2uN.rst
new file mode 100644
index 000000000000000..c7c8057776bec4a
--- /dev/null
+++ 
b/Misc/NEWS.d/next/Documentation/2026-09-24-10-10-15.gh-issue-57491.UA-2uN.rst
@@ -0,0 +1,3 @@
+Reduce the depth of the table of contents in the EPUB documentation from
+three levels to two, making it much shorter and easier to navigate in e-book
+readers.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to