From 639745876f376362d33e5a2e4e2950b2011663c3 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Sun, 17 Apr 2022 22:34:44 +0200 Subject: style: better way to include additional css files --- conf.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'conf.py') diff --git a/conf.py b/conf.py index 21912d8..6cdb7fb 100644 --- a/conf.py +++ b/conf.py @@ -91,6 +91,12 @@ today_fmt = '%x' html_favicon = '_static/favicon.ico' +# These paths are either relative to html_static_path +# or fully qualified paths (eg. https://...) +html_css_files = [ + 'club1.css', +] + # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'sphinx_rtd_theme' @@ -137,10 +143,3 @@ man_show_urls = True latex_elements = { 'papersize': 'a4paper', } - - -# -- Define some functions --------------------------------------------------- - -def setup(app): - # Add custom CSS - app.add_css_file('club1.css') -- cgit v1.2.3