From 8fbaa0331c6020447b2992730533ec337bad8cb0 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Mon, 7 Sep 2020 17:10:22 +0200 Subject: 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 Signed-off-by: Richard Purdie --- documentation/conf.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'documentation/conf.py') 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 = { # a list of builtin themes. # html_theme = 'sphinx_rtd_theme' +html_theme_options = { + 'sticky_navigation': False, +} html_logo = 'sphinx-static/YoctoProject_Logo_RGB.jpg' @@ -105,3 +108,12 @@ html_context = { ], 'current_version': current_version, } + +# Hide 'Created using Sphinx' text +html_show_sphinx = False + +# Add 'Last updated' on each page +html_last_updated_fmt = '%b %d, %Y' + +# Remove the trailing 'dot' in section numbers +html_secnumber_suffix = " " -- cgit v1.2.3-54-g00ecf