CI: Replace a deprecated method in docs/conf.py 26/67626/3
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 7 May 2021 14:21:53 +0000 (16:21 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 10 May 2021 15:51:12 +0000 (17:51 +0200)
Sphinx method add_stylesheet() is deprecated.
It now generates warnings at buildtime.
The method add_css_file() must be used instead.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I5ddba780dd649d840ef7bf070b48bf771c9f8888

docs/conf.py

index e01ef1a..7198193 100644 (file)
@@ -42,4 +42,4 @@ sphinx_tabs_valid_builders = ["linkcheck"]
 
 def setup(app):
     """Injects the report issue ribbon."""
-    app.add_stylesheet("css/ribbon.css")
+    app.add_css_file("css/ribbon.css")