summaryrefslogtreecommitdiffstats
path: root/documentation/conf.py
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-06-10 15:08:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-17 10:09:33 +0100
commit2c3298d72e484a1809ac8a588a1730fc93123af4 (patch)
tree9687995300f12ba652a5aeacb7630a30b95896f5 /documentation/conf.py
parent7ea70a656bd0cf582c66ab7e76936d93e22125ce (diff)
downloadpoky-2c3298d72e484a1809ac8a588a1730fc93123af4.tar.gz
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 <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/conf.py')
-rw-r--r--documentation/conf.py8
1 files changed, 7 insertions, 1 deletions
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'
54# Add any paths that contain custom static files (such as style sheets) here, 54# Add any paths that contain custom static files (such as style sheets) here,
55# relative to this directory. They are copied after the builtin static files, 55# relative to this directory. They are copied after the builtin static files,
56# so a file named "default.css" will overwrite the builtin "default.css". 56# so a file named "default.css" will overwrite the builtin "default.css".
57html_static_path = ['_static'] 57html_static_path = ['sphinx-static']
58
59html_context = {
60 'css_files': [
61 '_static/theme_overrides.css',
62 ],
63}