Skip to content

Commit 9efe6b0

Browse files
[3.13] gh-57491: Reduce the EPUB table of contents depth to 2 (GH-158105) (#158251)
Co-authored-by: Danishk2445 <143554875+Danishk2445@users.noreply.github.com>
1 parent ba20827 commit 9efe6b0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎Doc/conf.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@
462462
# https://github.com/sphinx-doc/sphinx/issues/12359
463463
epub_use_index = False
464464

465+
# The default depth of 3 lists over a thousand entries, which makes the
466+
# table of contents hard to navigate in e-book readers
467+
epub_tocdepth = 2
468+
465469
# translation tag
466470
# ---------------
467471

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Reduce the depth of the table of contents in the EPUB documentation from
2+
three levels to two, making it much shorter and easier to navigate in e-book
3+
readers.

0 commit comments

Comments
 (0)