summaryrefslogtreecommitdiffstats
path: root/documentation/conf.py
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-09-07 17:10:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-17 10:09:34 +0100
commit8fbaa0331c6020447b2992730533ec337bad8cb0 (patch)
treedd410d6203625c58718a1a00c8195e4cae11121e /documentation/conf.py
parentb4779cf090945dd4960bc8ca2b805fe4e753412d (diff)
downloadpoky-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/conf.py')
-rw-r--r--documentation/conf.py12
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#
93html_theme = 'sphinx_rtd_theme' 93html_theme = 'sphinx_rtd_theme'
94html_theme_options = {
95 'sticky_navigation': False,
96}
94 97
95html_logo = 'sphinx-static/YoctoProject_Logo_RGB.jpg' 98html_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
113html_show_sphinx = False
114
115# Add 'Last updated' on each page
116html_last_updated_fmt = '%b %d, %Y'
117
118# Remove the trailing 'dot' in section numbers
119html_secnumber_suffix = " "