From 623ea7f3fe9fe8c972b5c6c3bcbe6fc0c4798182 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Wed, 10 Jun 2020 15:08:19 +0200 Subject: bitbake: sphinx: override theme CSS 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. Most of the CSS customization is inherited from the DocBook CSS style. (Bitbake rev: fa304c0129538d7a0b7a3922cd1fde2e242d6cab) Signed-off-by: Nicolas Dechesne Signed-off-by: Richard Purdie --- bitbake/doc/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bitbake/doc/conf.py') diff --git a/bitbake/doc/conf.py b/bitbake/doc/conf.py index 77ea2e8215..f5a3aa56c1 100644 --- a/bitbake/doc/conf.py +++ b/bitbake/doc/conf.py @@ -63,4 +63,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