Use app.add_css_file when building docs

app.add_stylesheet was deprecated in Sphinx 1.8 and will
be removed in 4.0
https://www.sphinx-doc.org/en/master/extdev/deprecated.html

The replacement app.add_css_file
https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_css_file
was renamed from add_stylesheet in 1.8
This commit is contained in:
Andrew Johnson 2020-06-19 07:56:08 -04:00
parent 5db729e3e1
commit 8fdf6cc6a7
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB

View file

@ -155,7 +155,7 @@ html_title = "OpenMC Documentation"
html_static_path = ['_static']
def setup(app):
app.add_stylesheet('theme_overrides.css')
app.add_css_file('theme_overrides.css')
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.