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

Co-authored-by: Danishk2445 <143554875+Danishk2445@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot)andDanishk2445 authored and GitHub committed 2026-09-26 18:59:27 +00:00
1 parent e16b12bb98
commit e4467cc9f8
2 files changed
+7

No files matched your search

+4
View File
@@ -469,6 +469,10 @@ epub_exclude_files = ('index.xhtml', 'download.xhtml')
# 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
# ---------------
@@ -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.