Skip to content

Commit 79c4114

Browse files
committed
Minor graphical updates of how to use page
1 parent 01c2d74 commit 79c4114

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

_sass/how.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ hr {
2020
ul, ol {
2121
margin: 0.25em 0 0 0;
2222

23+
}
24+
25+
h2 {
26+
font-size: 1.5em;
27+
margin: 0.5em 0 0.5em 0;
2328
}

how.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<h1 style="float:'left'"><strong>{{ plugin.title | raw }}</strong></h1>
1515
<p>{{ plugin.description | raw }}</p>
1616
</div>
17-
<h1 class = "clickable" style = "padding: 0;">Command line</h1>
17+
<hr class="not-hidden">
18+
<h1 class = "clickable" >Command line</h1>
1819
<p>The ipfixprobe consists of one <b>input</b>, zero or one <b>output</b>, one <b>storage</b> and zero or more <b>process</b> plugins. </p>
1920
{% for plugin in site.how %}
2021
<div class="text editable">
@@ -24,7 +25,7 @@ <h2 style="float:'left'">{{ plugin.title | raw }}</h2>
2425
</div>
2526
{% for option in plugin.options %}
2627
<hr>
27-
<h3> {{ option.title }}</h3>
28+
<h4> {{ option.title }}</h4>
2829
<p>{{ option.description }}</p>
2930
{% if plugin.options %}
3031
<span style="background-color: #ffe59e; " >
@@ -42,7 +43,8 @@ <h3> {{ option.title }}</h3>
4243
{% endfor %}
4344
{% endfor %}
4445
{% endfor %}
45-
<h1 class = "clickable" style = "padding: 0;">One-time convertion of PCAP file to CSV</h1>
46+
<hr class="not-hidden">
47+
<h1 class = "clickable" >One-time convertion of PCAP file to CSV</h1>
4648
<p>The ipfixprobe can be used to convert given PCAP file to the CSV containing flows from that file in the Unirec format.</p>
4749
<span style="background-color: #e1afdc; " >
4850
<b>Requirements</b>:<br>
@@ -60,13 +62,13 @@ <h1 class = "clickable" style = "padding: 0;">One-time convertion of PCAP file t
6062
<li>Logs the results in CSV format</li>
6163
</ol>
6264
</span>
63-
<h3>Build</h3>
65+
<h4>Build</h4>
6466
<p>The script builds the image automatically, but be sure that Dockerfile is in the same directory.<br>
6567
To build the manually image, navigate to the directory containing the Dockerfile and run:</p>
6668
<span>
6769
<p style = "font-family: monospace;">docker build -t docker_ipfixprobe .</p>
6870
</span>
69-
<h3>Run</h3>
71+
<h4>Run</h4>
7072
<span style="background-color: #ffe59e; " >
7173
<b>Parameters</b>:<br>
7274
<ul>
@@ -82,7 +84,8 @@ <h3>Run</h3>
8284
<span>
8385
<p style = "font-family: monospace;">bash ./ipfixprobe_wrapper.sh ./process_script.sh ../pcaps/mixed.pcap ./output.csv</p>
8486
</span>
85-
<h1 class = "clickable" style = "padding: 0;">ipfixprobe as a service</h1>
87+
<hr class="not-hidden">
88+
<h1 class = "clickable">ipfixprobe as a service</h1>
8689
<p>The ipfxprobe can be set up to be used as a daemon to continuously process incoming packets from the boot up:</p>
8790
<h2>On linux server</h2>
8891
<p>Install the ipfixprobe:</p>
@@ -165,6 +168,7 @@ <h2>OpenWRT</h2>
165168
<span>
166169
<p style = "font-family: monospace;">/etc/init.d/ipfixprobe enable</p>
167170
</span>
171+
<hr class="not-hidden">
168172
</div>
169173
</div>
170174
</section>
@@ -175,7 +179,7 @@ <h2>OpenWRT</h2>
175179

176180
let sibling = firstClickable.nextElementSibling;
177181
while (sibling) {
178-
if (sibling.tagName !== 'H1')
182+
if (sibling.tagName !== 'H1' && !sibling.classList.contains('not-hidden'))
179183
sibling.classList.add('hidden');
180184
sibling = sibling.nextElementSibling;
181185
}

0 commit comments

Comments
 (0)