Resolve app.add_stylesheet() is deprecated 23/93423/1
authorThanh Ha <zxiiro@gmail.com>
Tue, 27 Oct 2020 18:09:48 +0000 (14:09 -0400)
committerThanh Ha <zxiiro@gmail.com>
Tue, 27 Oct 2020 18:09:48 +0000 (14:09 -0400)
/w/workspace/docs-tox-verify-silicon/docs/conf.py:74:
RemovedInSphinx40Warning: The app.add_stylesheet() is deprecated.
Please use app.add_css_file() instead.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I2d44a41d240381e2b1f9dee70aa5af2bed7acd1d

docs/conf.py

index 5e39a65e77a617e09b4ca7b06e3119348c613544..6ab0f241824841ad496aadaae0e774175c58ac07 100755 (executable)
@@ -71,4 +71,4 @@ html_context = {
 }
 
 def setup(app):
-    app.add_stylesheet("css/ribbon.css")
+    app.add_css_file("css/ribbon.css")