diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-09-08 16:12:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-16 18:13:44 +0100 |
commit | 10a54678bf7a119e91df8160b0f43384181d636d (patch) | |
tree | 1d78dcbb36cb7cc52d7bf0f74ba90f5d03374291 /doc | |
parent | 219b2348f51a02b102cd1c34c87f279c83ae4908 (diff) | |
download | bitbake-10a54678bf7a119e91df8160b0f43384181d636d.tar.gz |
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
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conf.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/doc/conf.py b/doc/conf.py index f5a3aa56c..4ff90e8db 100644 --- a/doc/conf.py +++ b/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 = " " |