* [dpdk-stable] [PATCH] doc: fix sphinx compatibility
@ 2020-04-09 21:03 Thomas Monjalon
2020-04-16 20:08 ` [dpdk-stable] [dpdk-dev] " Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Monjalon @ 2020-04-09 21:03 UTC (permalink / raw)
To: dev; +Cc: stable, John McNamara, Marko Kovacevic
The function add_stylesheet() is deprecated since sphinx 1.8.
It will be removed in sphinx 4.0.
It is replaced by add_css_file().
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
doc/guides/conf.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/doc/guides/conf.py b/doc/guides/conf.py
index c368fa51d4..6974f0fd2f 100644
--- a/doc/guides/conf.py
+++ b/doc/guides/conf.py
@@ -415,4 +415,7 @@ def setup(app):
# Process the numref references once the doctree has been created.
app.connect('doctree-resolved', process_numref)
- app.add_stylesheet('css/custom.css')
+ try:
+ app.add_css_file('css/custom.css')
+ except:
+ app.add_stylesheet('css/custom.css')
--
2.26.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-16 20:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 21:03 [dpdk-stable] [PATCH] doc: fix sphinx compatibility Thomas Monjalon
2020-04-16 20:08 ` [dpdk-stable] [dpdk-dev] " Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).