[Python-checkins] Include subsections in TOC for PDF version of docs. (GH-9629)

Cheryl Sabella webhook-mailer at python.org
Tue Feb 18 18:01:38 EST 2020


https://github.com/python/cpython/commit/a4ba8a3983356fceb4aedabe0c338180666a79aa
commit: a4ba8a3983356fceb4aedabe0c338180666a79aa
branch: master
author: Cheryl Sabella <cheryl.sabella at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-02-19T00:01:15+01:00
summary:

Include subsections in TOC for PDF version of docs. (GH-9629)

files:
A Misc/NEWS.d/next/Documentation/2018-09-28-18-13-08.bpo-9056.-sFOwU.rst
M Doc/conf.py

diff --git a/Doc/conf.py b/Doc/conf.py
index abaa760c98c1a..32db34344a70a 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -127,6 +127,7 @@
 }
 \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
index 0000000000000..98e1c286e8613
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2018-09-28-18-13-08.bpo-9056.-sFOwU.rst
@@ -0,0 +1 @@
+Include subsection in TOC for PDF version of docs.



More information about the Python-checkins mailing list