]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Include subsections in TOC for PDF version of docs. (GH-9629)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Tue, 18 Feb 2020 23:01:15 +0000 (18:01 -0500)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2020 23:01:15 +0000 (00:01 +0100)
Doc/conf.py
Misc/NEWS.d/next/Documentation/2018-09-28-18-13-08.bpo-9056.-sFOwU.rst [new file with mode: 0644]

index abaa760c98c1aa24c5109d30db2f3e358b9bb2a7..32db34344a70a104141fbe928b7c6e111965b758 100644 (file)
@@ -127,6 +127,7 @@ latex_elements['preamble'] = r'''
 }
 \let\Verbatim=\OriginalVerbatim
 \let\endVerbatim=\endOriginalVerbatim
+\setcounter{tocdepth}{2}
 '''
 
 # The paper size ('letter' or 'a4').
diff --git a/Misc/NEWS.d/next/Documentation/2018-09-28-18-13-08.bpo-9056.-sFOwU.rst b/Misc/NEWS.d/next/Documentation/2018-09-28-18-13-08.bpo-9056.-sFOwU.rst
new file mode 100644 (file)
index 0000000..98e1c28
--- /dev/null
@@ -0,0 +1 @@
+Include subsection in TOC for PDF version of docs.