diff options
| author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-09-07 21:44:54 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-17 10:09:34 +0100 |
| commit | e4b904b21cd30f0b2f412117b73411b0f2844fef (patch) | |
| tree | ad0043bda23a976f6902638edc81ad2c46fb7f2d /documentation/conf.py | |
| parent | 2a94fe8d6bab10f54e08e9785402dec396a2252d (diff) | |
| download | poky-e4b904b21cd30f0b2f412117b73411b0f2844fef.tar.gz | |
sphinx: conf: include CSS/JS files, the proper way
html_css_files and html_js_files exist since Sphinx 1.8, and it's the
proper (documented) mechanism to include custom CSS and JS files in
the documentation.
(From yocto-docs rev: 4ae9c426654e33fed4185e5d6e0de76b4a430d84)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/conf.py')
| -rw-r--r-- | documentation/conf.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/documentation/conf.py b/documentation/conf.py index 83dea72e41..e1a7e5e3dd 100644 --- a/documentation/conf.py +++ b/documentation/conf.py | |||
| @@ -103,12 +103,13 @@ html_logo = 'sphinx-static/YoctoProject_Logo_RGB.jpg' | |||
| 103 | html_static_path = ['sphinx-static'] | 103 | html_static_path = ['sphinx-static'] |
| 104 | 104 | ||
| 105 | html_context = { | 105 | html_context = { |
| 106 | 'css_files': [ | ||
| 107 | '_static/theme_overrides.css', | ||
| 108 | ], | ||
| 109 | 'current_version': current_version, | 106 | 'current_version': current_version, |
| 110 | } | 107 | } |
| 111 | 108 | ||
| 109 | # Add customm CSS and JS files | ||
| 110 | html_css_files = ['theme_overrides.css'] | ||
| 111 | html_js_files = ['switchers.js'] | ||
| 112 | |||
| 112 | # Hide 'Created using Sphinx' text | 113 | # Hide 'Created using Sphinx' text |
| 113 | html_show_sphinx = False | 114 | html_show_sphinx = False |
| 114 | 115 | ||
