Skip to content

Commit

Permalink
[ci skip] Modernize Sphinx css configuration
Browse files Browse the repository at this point in the history
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 (sphinx-doc/sphinx#8893), but since the
modern way seems clearer, I switched to it.
  • Loading branch information
jschwab committed Feb 17, 2021
1 parent 3c33239 commit 0c7c912
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 0c7c912

Please sign in to comment.