Browse Source

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>
Nicolas Dechesne 4 years ago
parent
commit
8fbaa0331c
1 changed files with 12 additions and 0 deletions
  1. 12 0
      documentation/conf.py

+ 12 - 0
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 = " "