Skip to content

Commit bd0a397

Browse files
committed
fix AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
1 parent 971e076 commit bd0a397

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@
129129
"matplotlib": ("https://matplotlib.org", None),
130130
}
131131

132-
def setup(app):
133-
app.add_stylesheet('css/custom.css')
132+
html_static_path = ['readthedocs/_static']
133+
html_css_files = [
134+
'css/custom.css',
135+
]
134136

0 commit comments

Comments
 (0)