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 a011da5 commit 4ed6591
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,9 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

html_context = {
"css_files": [
# override wide tables in RTD theme
"_static/theme_overrides.css",
]
}
html_css_files = [
"_static/theme_overrides.css", # Fix wide tables in RTD theme
]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down

0 comments on commit 4ed6591

Please sign in to comment.