From 53b2ff3d8caa3ac3eddb0f0f71f942c676063a17 Mon Sep 17 00:00:00 2001 From: Josiah Schwab Date: Wed, 17 Feb 2021 09:42:42 -0800 Subject: [PATCH] [ci skip] Modernize Sphinx css configuration This adds a css file via the html_css_files option introduced in Sphinx 1.8. Our current use of html_context is broken in Sphinx 3.5.0. It looks like they are going to fix that in 3.5.1 (https://github.com/sphinx-doc/sphinx/pull/8893), but since the modern way seems clearer, I switched to it. --- docs/source/conf.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index b4b1c5f91..085004661 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -73,11 +73,10 @@ html_logo = 'mesa-logo-200.png' # Override theme stylesheet -html_context = { - 'css_files': [ - '_static/theme_overrides.css', # overrides for wide tables in RTD theme - ], - } +html_css_files = [ + 'theme_overrides.css', # overrides for wide tables in RTD theme +] + # standard substitutions rst_prolog = r"""