From 6c0bbcdbac2e30cebc80ab4ae2d892fed043548f Mon Sep 17 00:00:00 2001 From: Philipp Wagner Date: Thu, 18 Feb 2021 11:31:46 +0000 Subject: [PATCH] Fix deprecated sphinx html_context usage in conf.py We were using the old html_context which has been deprecated for a while. This PR switches to html_css_files instead. See sphinx-doc/sphinx#8885 for more information. --- doc/conf.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 57e177d8dd..215db108a9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -105,11 +105,9 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -html_context = { - 'css_files' : [ - '_static/theme_overrides.css', # Fix wide tables in RTD theme - ], - } +html_css_files = [ + '_static/theme_overrides.css', # Fix wide tables in RTD theme +] # -- Options for LaTeX output ---------------------------------------------