File: Fix-FTBFS-with-new-sphinx.patch

package info (click to toggle)
pyswarms 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 33,556 kB
  • sloc: python: 4,109; makefile: 240; sh: 32
file content (25 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Nilesh Patra <nilesh@debian.org>
Date: Fri, 29 Oct 2021 19:39:37 +0000
Subject: Sphinx API has changed,
 add_stylesheet() has been replaced with add_css_file(), this

Last-Update: 2021-10-29

change is propagated here.
---
 docs/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 68e2148..d2ffec6 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -164,7 +164,7 @@ html_static_path = ["_static"]
 
 def setup(app):
     # overrides for wide tables in RTD theme
-    app.add_stylesheet("theme_overrides.css")  # path relative to static
+    app.add_css_file("theme_overrides.css")  # path relative to static
 
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page