diff --git a/docs/conf.py b/docs/conf.py
index efcb17330dad70c4bd0f0bf9a31a8e66aee1c5c7..b8b791e9a2a027aee3b0461beae5d90b44588491 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -219,4 +219,4 @@ todo_include_todos = True
 
 
 def setup(app):
-    app.add_stylesheet('_static/style.css')
+    app.add_css_file('_static/style.css')