From 10a54678bf7a119e91df8160b0f43384181d636d Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Tue, 8 Sep 2020 16:12:06 +0200 Subject: 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 --- doc/conf.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'doc') 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 = " " -- cgit 1.2.3-korg