forked from micro-ROS/micro-ROS.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs_nav.html
More file actions
58 lines (58 loc) · 2.61 KB
/
docs_nav.html
File metadata and controls
58 lines (58 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
{% for section in site.data.docs %}
{% assign should_show_this_menu = false %}
{% if page.path contains "_docs/overview" and section.title == "Overview" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/concepts" and section.title == "Client Library" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/concepts" and section.title == "Middleware" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/concepts" and section.title == "RTOSes" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/concepts" and section.title == "Build System" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/concepts" and section.title == "Benchmarking" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/concepts" and section.title == "Interoperability with FIWARE" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/tutorials" and section.title contains "Tutorials" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/tutorials" and section.title contains "Programming" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/tutorials" and section.title == "Demos" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if page.path contains "_docs/api" and section.title == "API" %}
{% assign should_show_this_menu = true %}
{% endif %}
{% if should_show_this_menu == true %}
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-{{forloop.index}}" aria-expanded="false" aria-controls="collapse-{{forloop.index}}">
{{ section.title }}
</a>
</h4>
</div>
<div id="collapse-{{forloop.index}}" class="panel-collapse collapse" role="tabpanel" aria-label="Side Navigation">
<div class="list-group">
{% for item in section.docs %}
{% assign item_url = item | prepend:"/docs/" | append:"/" %}
{% assign p = site.docs | where:"url", item_url | first %}
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | prepend: site.baseurl }}">{{ p.title }}</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>