chiark / gitweb /
Read the docs (#132)
[nlopt.git] / doc / nlopt-mkdocs-theme / toc.html
1 {% if nav_item.children %}
2     <ul class="subnav">
3     <li><span>{{ nav_item.title }}</span></li>
4
5         {% for nav_item in nav_item.children %}
6             {% include 'toc.html' %}
7         {% endfor %}
8     </ul>
9 {% else %}
10     <li class="toctree-l1 {% if nav_item.active%}current{%endif%}">
11         <a class="{% if nav_item.active%}current{%endif%}" href="{{ nav_item.url }}">{{ nav_item.title }}</a>
12         {% if nav_item == current_page %}
13             <ul>
14             {% for toc_item in toc %}
15                 <li class="toctree-l3"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
16                 {% for toc_item in toc_item.children %}
17                     <li><a class="toctree-l4" href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
18                 {% endfor %}
19             {% endfor %}
20             </ul>
21         {% endif %}
22     </li>
23 {% endif %}