Skip to content

Commit

Permalink
Fix deprecated sphinx html_context usage in conf.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
imphil committed Feb 18, 2021
1 parent 7cee76b commit 6c0bbcd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------

Expand Down

0 comments on commit 6c0bbcd

Please sign in to comment.