doc: update sphinx api to use add_css_file

instead of deprecated add_stylesheet
pull/6139/head
Philippe Antoine 4 years ago committed by Victor Julien
parent 581cb6223d
commit 95f225e8fb

@ -129,6 +129,9 @@ if not on_rtd:
except:
html_theme = 'default'
def setup(app):
if hasattr(app, 'add_css_file'):
app.add_css_file('css/suricata.css')
else:
app.add_stylesheet('css/suricata.css')
else:
html_context = {

@ -135,6 +135,9 @@ if not on_rtd:
except:
html_theme = 'default'
def setup(app):
if hasattr(app, 'add_css_file'):
app.add_css_file('css/suricata.css')
else:
app.add_stylesheet('css/suricata.css')
else:
html_context = {

Loading…
Cancel
Save