diff options
author | Paul Barker <pbarker@konsulko.com> | 2020-11-13 09:54:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-04 10:55:02 +0000 |
commit | 5b08dd48f2b1657d4923025e0f06507bc7ae6cca (patch) | |
tree | 8b32eba2a9b1486b3fefc6fe94f1872fb4bc2801 | |
parent | de27f9ea574c2741b949b4962b1c411357f0e827 (diff) | |
download | poky-5b08dd48f2b1657d4923025e0f06507bc7ae6cca.tar.gz |
conf.py: Improve TOC and Outline depth in PDF output
The default PDF output shows only chapter headings in the table of
contents and in the outline (aka PDF bookmarks). We should override
these defaults to set something more suitable.
With a depth of 2 for the TOC we see both section and subsection
headings which is enough to get the list of classes in the reference
manual and the list of topics under "Common Tasks" in the development
manual. Going to a deeper level would make the TOC unwieldy but we do
want to make sure we can navigate more precisely using the outline
(commonly shown in a left tab in PDF viewers) so we set the depth to 5
for the outline.
(From yocto-docs rev: f74238d08163f6fc45939422ae96a3d69c0e4449)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5db16d3b01da0a138b6413347fcf2321a1bfae08)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/conf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/documentation/conf.py b/documentation/conf.py index 9a0186f352..a8df6e8f86 100644 --- a/documentation/conf.py +++ b/documentation/conf.py | |||
@@ -124,3 +124,8 @@ html_last_updated_fmt = '%b %d, %Y' | |||
124 | 124 | ||
125 | # Remove the trailing 'dot' in section numbers | 125 | # Remove the trailing 'dot' in section numbers |
126 | html_secnumber_suffix = " " | 126 | html_secnumber_suffix = " " |
127 | |||
128 | latex_elements = { | ||
129 | 'passoptionstopackages': '\PassOptionsToPackage{bookmarksdepth=5}{hyperref}', | ||
130 | 'preamble': '\setcounter{tocdepth}{2}', | ||
131 | } | ||