Skip to content

Commit

Permalink
userguide: remove old css files
Browse files Browse the repository at this point in the history
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 cc0adaa)
  • Loading branch information
jasonish authored and victorjulien committed Jan 18, 2024
1 parent e1f2555 commit 98e72a7
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions doc/userguide/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,15 @@
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
Expand Down

0 comments on commit 98e72a7

Please sign in to comment.