summaryrefslogtreecommitdiff
path: root/doc/developer/conf.py
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2021-06-03 13:41:13 -0400
committerQuentin Young <qlyoung@nvidia.com>2021-06-03 16:32:00 -0400
commitd6ba203d2fb190e38956082429a34c747cf9de9d (patch)
treeb52765b9e67e890347ffda06a2c283e1a58ea44d /doc/developer/conf.py
parent826186eab217a590d86a7bdfaab6174da51c79b2 (diff)
doc: use add_css_file(); not deprecated
add_stylesheet() is deprecated and removed in Sphinx 4.x Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'doc/developer/conf.py')
-rw-r--r--doc/developer/conf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/developer/conf.py b/doc/developer/conf.py
index 20265f4aad..8f282c0790 100644
--- a/doc/developer/conf.py
+++ b/doc/developer/conf.py
@@ -395,8 +395,11 @@ def setup(app):
# printfrr extensions
app.add_object_type("frrfmt", "frrfmt", parse_node=parse_frrfmt)
- # css overrides for HTML theme
- app.add_stylesheet("overrides.css")
+ if "add_css_file" in dir(app):
+ app.add_css_file("overrides.css")
+ else:
+ app.add_stylesheet("overrides.css")
+
# load Pygments lexer for FRR config syntax
#
# NB: in Pygments 2.2+ this can be done with `load_lexer_from_file`, but we