]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
userguide: remove old css files 10196/head
authorJason Ish <jason.ish@oisf.net>
Thu, 30 Nov 2023 17:46:14 +0000 (11:46 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 18 Jan 2024 15:11:06 +0000 (16:11 +0100)
In our conf.py we reference some ReadTheDocs stylesheets that appear to
be old and break formatting of some items like bulletted lists.

Bug: #6589
(cherry picked from commit cc0adaaf4a747fbefa5e8d5afec73760cbb8b2f9)

doc/userguide/conf.py

index cf87f19c311eb37d7ec35419463d7475f79ad4ff..d043a288cd3fe9d24ca7eff5a85cbeaad6347ded 100644 (file)
@@ -137,20 +137,15 @@ if not on_rtd:
         html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
     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_theme = 'sphinx_rtd_theme'
-    html_context = {
-        'css_files': [
-            'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
-            'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
-            '_static/css/suricata.css',
-        ],
-    }
+
+# Add in our own stylesheet.
+def setup(app):
+    if hasattr(app, 'add_css_file'):
+        app.add_css_file('css/suricata.css')
+    else:
+        app.add_stylesheet('css/suricata.css')
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the