diff --git a/Doc/conf.py b/Doc/conf.py index abaa760c98c..32db34344a7 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 00000000000..98e1c286e86 --- /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.