From: Cheryl Sabella Date: Tue, 18 Feb 2020 23:01:15 +0000 (-0500) Subject: Include subsections in TOC for PDF version of docs. (GH-9629) X-Git-Tag: v3.9.0a4~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4ba8a3983356fceb4aedabe0c338180666a79aa;p=thirdparty%2FPython%2Fcpython.git Include subsections in TOC for PDF version of docs. (GH-9629) --- diff --git a/Doc/conf.py b/Doc/conf.py index abaa760c98c1..32db34344a70 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -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 index 000000000000..98e1c286e861 --- /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.