forked from lynckia/licode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoc.html
36 lines (33 loc) · 1.17 KB
/
toc.html
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
<div class="bs-sidebar hidden-print affix-top well" role="complementary">
{%- macro draw_toc_for_nav(nav_item_to_draw) %}
{%- for nav_child in nav_item_to_draw.children %}
<li class="main"><a href="{{ nav_child.url }}">{{ nav_child.title }}</a></li>
{%- if page_title == nav_child.title%}
{%- for toc_item in toc %}
<li class="{% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- endmacro %}
<ul class="nav bs-sidenav">
{%- block search_button %}
<li class="search_nav">
<a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
<i class="fa fa-search"></i> Search
</a>
</li>
{%- endblock %}
{%- for nav_item in nav %}
{%- for nav_child in nav_item.children %}
{%- if nav_child.title == page_title %}
{{ draw_toc_for_nav(nav_item)}}
{%- endif %}
{%- if page_title == None %}
{%- if nav_child.title == 'Architecture' %}
{{ draw_toc_for_nav(nav_item)}}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endfor %}
</ul>
</div>