]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: Add suricata.css to allow for some custom styling
authorRalph Broenink <ralph@ralphbroenink.net>
Sat, 14 Oct 2017 09:17:19 +0000 (11:17 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 8 Dec 2017 10:32:09 +0000 (11:32 +0100)
doc/userguide/_static/css/suricata.css [new file with mode: 0644]
doc/userguide/conf.py

diff --git a/doc/userguide/_static/css/suricata.css b/doc/userguide/_static/css/suricata.css
new file mode 100644 (file)
index 0000000..5fdbbf1
--- /dev/null
@@ -0,0 +1,27 @@
+.example-rule {
+    padding: 12px 12px;
+    font-family: Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;
+    font-size: 12px;
+    line-height: 1.5;
+    display: block;
+    overflow: auto;
+    color: #404040;
+
+    border: 1px solid #e1e4e5;
+    background: #fff;
+    margin: 1px 0 24px 0;
+}
+.example-rule-emphasis {
+    color: #f00;
+    font-weight: bold;
+}
+
+.example-rule-action {
+    color: #f00;
+}
+.example-rule-header {
+    color: #090;
+}
+.example-rule-options {
+    color: #00f;
+}
index f93222049a3f335df336b25f9a3affdbdb3b1979..6e22cfbe9e731758eb3c8765715b62a0751e1bd9 100644 (file)
@@ -134,6 +134,16 @@ if not on_rtd:
         html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
     except:
         html_theme = 'default'
+    def setup(app):
+        app.add_stylesheet('css/suricata.css')
+else:
+    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',
+        ],
+    }
 
 # 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