From 2c3298d72e484a1809ac8a588a1730fc93123af4 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Wed, 10 Jun 2020 15:08:19 +0200 Subject: sphinx: add CSS theme override It is possible to override CSS settings from the theme, by providing custom snippets of CSS stylesheet. Support for that is added in conf.py file. The following changes are made: * remove the overall text width which (set to 800px by default) * improve the visual output, and colors of links and admonition (From yocto-docs rev: 0c1e108bc6c452f7cc8c665bee984bd7da281666) Signed-off-by: Nicolas Dechesne Signed-off-by: Richard Purdie --- documentation/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'documentation/conf.py') diff --git a/documentation/conf.py b/documentation/conf.py index f25c53cb68..643bd7cbc9 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -54,4 +54,10 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +html_static_path = ['sphinx-static'] + +html_context = { + 'css_files': [ + '_static/theme_overrides.css', + ], +} -- cgit v1.2.3-54-g00ecf