2022-03-08 08:06:22 +00:00
|
|
|
<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2022-05-25 18:42:24 +00:00
|
|
|
<a class="navbar-brand" href="{{ pathto(master_doc) }}" style="padding: 12px;">
|
2022-03-08 08:06:22 +00:00
|
|
|
{%- block sidebarlogo %}
|
2022-05-25 18:42:24 +00:00
|
|
|
{%- if logo %}
|
|
|
|
<span>
|
|
|
|
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo">
|
|
|
|
<img src="{{ pathto('_static/alt-' + logo, 1) }}" class="logo-hover">
|
|
|
|
</span>
|
|
|
|
{%- endif %}
|
2022-03-08 08:06:22 +00:00
|
|
|
{%- endblock %}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse nav-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
{% if theme_navbar_links %}
|
2022-11-08 21:48:52 +00:00
|
|
|
{%- for menu in theme_navbar_links %}
|
|
|
|
{% if menu[0] == "_menu" %}
|
2022-03-08 08:06:22 +00:00
|
|
|
<li class="dropdown">
|
2022-11-08 21:48:52 +00:00
|
|
|
<a role="button" id="{{ menu[1] }}Toc" data-toggle="dropdown" data-target="#" href="#" aria-expanded="false">{{ menu[1] }} <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="{{ menu[1] }}Toc">
|
|
|
|
{%- for link in menu[2] %}
|
|
|
|
{% if link[0] == "_divider" %}
|
2022-03-08 08:06:22 +00:00
|
|
|
<li class="divider"></li>
|
2022-11-08 21:48:52 +00:00
|
|
|
{% elif link[0] == "_menu" %}
|
2022-03-08 08:06:22 +00:00
|
|
|
<li class="dropdown-submenu">
|
2022-11-08 21:48:52 +00:00
|
|
|
{% if link|length == 4 %}
|
|
|
|
<a tabindex="-1" href="{{ pathto(link[2]) }}">{{ link[1] }}</a>
|
|
|
|
{% elif link|length == 5 %}
|
|
|
|
<a tabindex="-1" href="{{ pathto(link[2]) }}{{ link[3] }}">{{ link[1] }}</a>
|
2022-11-03 19:44:01 +00:00
|
|
|
{% else %}
|
2022-11-08 21:48:52 +00:00
|
|
|
<a tabindex="-1" href="#">{{ link[1] }}</a>
|
2022-10-17 14:00:48 +00:00
|
|
|
{% endif %}
|
2022-03-08 08:06:22 +00:00
|
|
|
<ul class="dropdown-menu">
|
2022-11-08 21:48:52 +00:00
|
|
|
{%- for sublink in link[-1] %}
|
|
|
|
{% if sublink[0] == "_divider" %}
|
2022-03-08 08:06:22 +00:00
|
|
|
<li class="divider"></li>
|
2022-11-08 21:48:52 +00:00
|
|
|
{% elif sublink[0] == "_menu" %}
|
2022-10-17 06:48:08 +00:00
|
|
|
<li class="dropdown-submenu">
|
2022-11-08 21:48:52 +00:00
|
|
|
{% if sublink|length == 4 %}
|
|
|
|
<a tabindex="-1" href="{{ pathto(sublink[2]) }}">{{ sublink[1] }}</a>
|
|
|
|
{% elif sublink|length == 5 %}
|
|
|
|
<a tabindex="-1" href="{{ pathto(sublink[2]) }}{{ sublink[3] }}">{{ sublink[1] }}</a>
|
2022-11-03 19:44:01 +00:00
|
|
|
{% else %}
|
2022-11-08 21:48:52 +00:00
|
|
|
<a tabindex="-1" href="#">{{ sublink[1] }}</a>
|
2022-10-17 14:00:48 +00:00
|
|
|
{% endif %}
|
2022-10-17 06:48:08 +00:00
|
|
|
<ul class="dropdown-menu">
|
2022-11-08 21:48:52 +00:00
|
|
|
{%- for specificlink in sublink[-1] %}
|
|
|
|
{% if specificlink[0] == "_divider" %}
|
2022-10-17 06:48:08 +00:00
|
|
|
<li class="divider"></li>
|
2022-11-08 21:48:52 +00:00
|
|
|
{% elif specificlink|length > 2 %}
|
|
|
|
<li><a href="{{ pathto(specificlink[1]) }}{{ specificlink[2] }}">{{ specificlink[0] }}</a></li>
|
2022-10-17 06:48:08 +00:00
|
|
|
{% else %}
|
2022-11-11 21:07:33 +00:00
|
|
|
<li><a href="{{ specificlink[1] if specificlink[1][:4] == 'http' else pathto(specificlink[1]) }}">{{ specificlink[0] }}</a></li>
|
2022-10-17 06:48:08 +00:00
|
|
|
{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
2022-11-08 21:48:52 +00:00
|
|
|
{% elif sublink|length > 2 %}
|
|
|
|
<li><a href="{{ pathto(sublink[1]) }}{{ sublink[2] }}">{{ sublink[0] }}</a></li>
|
2022-03-08 08:06:22 +00:00
|
|
|
{% else %}
|
2022-11-11 21:07:33 +00:00
|
|
|
<li><a href="{{ sublink[1] if sublink[1][:4] == 'http' else pathto(sublink[1]) }}">{{ sublink[0] }}</a></li>
|
2022-03-08 08:06:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
2022-11-08 21:48:52 +00:00
|
|
|
{% elif link|length > 2 %}
|
|
|
|
<li><a href="{{ pathto(link[1]) }}{{ link[2] }}">{{ link[0] }}</a></li>
|
2022-03-08 08:06:22 +00:00
|
|
|
{% else %}
|
2022-11-11 21:07:33 +00:00
|
|
|
<li><a href="{{ link[1] if link[1][:4] == 'http' else pathto(link[1]) }}">{{ link[0] }}</a></li>
|
2022-03-08 08:06:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
2022-11-08 21:48:52 +00:00
|
|
|
<li><a href="{{ pathto(*menu[1:]) }}">{{ menu[0] }}</a></li>
|
2022-03-08 08:06:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% if theme_navbar_sidebarrel %}
|
|
|
|
{% block sidebarrel %}
|
|
|
|
{% include "relations.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
{% block navbarextra %}
|
|
|
|
{% endblock %}
|
|
|
|
{% if theme_source_link_position == "nav" %}
|
|
|
|
<li class="hidden-sm">{% include "sourcelink.html" %}</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{% block navbarsearch %}
|
|
|
|
{% include "navbarsearchbox.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|