diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-09-07 17:10:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-17 10:09:34 +0100 |
commit | 8fbaa0331c6020447b2992730533ec337bad8cb0 (patch) | |
tree | dd410d6203625c58718a1a00c8195e4cae11121e /documentation | |
parent | b4779cf090945dd4960bc8ca2b805fe4e753412d (diff) | |
download | poky-8fbaa0331c6020447b2992730533ec337bad8cb0.tar.gz |
sphinx: conf: a few rendering tweaks
* Remove the 'generated by Sphinx' text on each page
* Add a 'last updated timestamp' on each page
* Remove the trailing 'dot' in TOC numbering
(From yocto-docs rev: 3fa6cf149b3dbbd88b3aa75b6ce1f8bd12817c91)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/conf.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/documentation/conf.py b/documentation/conf.py index 66af9fa060..83dea72e41 100644 --- a/documentation/conf.py +++ b/documentation/conf.py | |||
@@ -91,6 +91,9 @@ intersphinx_mapping = { | |||
91 | # a list of builtin themes. | 91 | # a list of builtin themes. |
92 | # | 92 | # |
93 | html_theme = 'sphinx_rtd_theme' | 93 | html_theme = 'sphinx_rtd_theme' |
94 | html_theme_options = { | ||
95 | 'sticky_navigation': False, | ||
96 | } | ||
94 | 97 | ||
95 | html_logo = 'sphinx-static/YoctoProject_Logo_RGB.jpg' | 98 | html_logo = 'sphinx-static/YoctoProject_Logo_RGB.jpg' |
96 | 99 | ||
@@ -105,3 +108,12 @@ html_context = { | |||
105 | ], | 108 | ], |
106 | 'current_version': current_version, | 109 | 'current_version': current_version, |
107 | } | 110 | } |
111 | |||
112 | # Hide 'Created using Sphinx' text | ||
113 | html_show_sphinx = False | ||
114 | |||
115 | # Add 'Last updated' on each page | ||
116 | html_last_updated_fmt = '%b %d, %Y' | ||
117 | |||
118 | # Remove the trailing 'dot' in section numbers | ||
119 | html_secnumber_suffix = " " | ||