8000 Fix build with Sphinx 4. (#799) · ericpre/zarr-python@f1afc57 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1afc57

Browse files
QuLogicjoshmoore
andauthored
Fix build with Sphinx 4. (zarr-developers#799)
`add_stylesheet` was deprecated in 1.8 and removed in 4.0 [1]. The replacement, `add_css_file` was added in 1.0. [1] https://www.sphinx-doc.org/en/master/extdev/deprecated.html?highlight=add_stylesheet Co-authored-by: Josh Moore <j.a.moore@dundee.ac.uk>
1 parent 7f63710 commit f1afc57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@
144144
# of the sidebar.
145145
html_logo = '_static/logo1.png'
146146

147+
147148
# Add custom css
148149
def setup(app):
149-
app.add_stylesheet('custom.css')
150+
app.add_css_file('custom.css')
151+
150152

151153
# The name of an image file (relative to this directory) to use as a favicon of
152154
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

0 commit comments

Comments
 (0)
0