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:14:08 +0100 |
| commit | 390fc75bd6705ee55ec9f35f09bfa715f81024e2 (patch) | |
| tree | 3d0176e158981b9e522c531db108f66096c9328e | |
| parent | 67b5e54d014d8de74cd13bdb2071a83f71cab34b (diff) | |
| download | poky-390fc75bd6705ee55ec9f35f09bfa715f81024e2.tar.gz | |
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 <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/doc/conf.py | 16 |
1 files 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' | |||
| 65 | # so a file named "default.css" will overwrite the builtin "default.css". | 65 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 66 | html_static_path = ['sphinx-static'] | 66 | html_static_path = ['sphinx-static'] |
| 67 | 67 | ||
| 68 | html_context = { | 68 | # Add customm CSS and JS files |
| 69 | 'css_files': [ | 69 | html_css_files = ['theme_overrides.css'] |
| 70 | '_static/theme_overrides.css', | 70 | |
| 71 | ], | 71 | # Hide 'Created using Sphinx' text |
| 72 | } | 72 | html_show_sphinx = False |
| 73 | |||
| 74 | # Add 'Last updated' on each page | ||
| 75 | html_last_updated_fmt = '%b %d, %Y' | ||
| 76 | |||
| 77 | # Remove the trailing 'dot' in section numbers | ||
| 78 | html_secnumber_suffix = " " | ||
