From 390fc75bd6705ee55ec9f35f09bfa715f81024e2 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Tue, 8 Sep 2020 16:12:06 +0200 Subject: bitbake: sphinx: tweak html output a bit * Remove the 'generated by Sphinx' text on each page * Add a 'last updated timestamp' on each page * Remove the trailing 'dot' in TOC numbering (Bitbake rev: 10a54678bf7a119e91df8160b0f43384181d636d) Signed-off-by: Nicolas Dechesne Signed-off-by: Richard Purdie --- bitbake/doc/conf.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bitbake/doc/conf.py b/bitbake/doc/conf.py index f5a3aa56c1..4ff90e8dbf 100644 --- a/bitbake/doc/conf.py +++ b/bitbake/doc/conf.py @@ -65,8 +65,14 @@ html_theme = 'sphinx_rtd_theme' # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['sphinx-static'] -html_context = { - 'css_files': [ - '_static/theme_overrides.css', - ], -} +# Add customm CSS and JS files +html_css_files = ['theme_overrides.css'] + +# 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