From: Andreas Tille <tille@debian.org>
Date: Sun, 8 Mar 2026 11:17:36 +0100
Subject: Adapt to sphinx 4.x API

Last-Update: 2021-09-30
Forwarded: https://github.com/cgat-developers/ruffus/issues/127
---
 doc/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/conf.py b/doc/conf.py
index f73c0ea..0b9cea2 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -21,7 +21,7 @@ import ruffus, ruffus.task, ruffus.ruffus_version
 def setup(app):
    #app.add_javascript("custom.js")
    if not on_rtd:
-       app.add_stylesheet("ruffus.css")
+       app.add_css_file("ruffus.css")
 
 
 # If extensions (or modules to document with autodoc) are in another directory,
