1 <div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top == 'true' -%} navbar-fixed-top{%- endif -%}"> 2 <div class="container"> 3 <div class="navbar-header"> 4 <!-- .btn-navbar is used as the toggle for collapsed navbar content --> 5 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse"> 6 <span class="icon-bar"></span> 7 <span class="icon-bar"></span> 8 <span class="icon-bar"></span> 9 </button> 10 <a class="navbar-brand" href="{{ pathto(master_doc) }}"> 11 {%- block sidebarlogo %} 12 <!-- LOGO: {{ logo }} {{ pathto('_static/' + logo, 1) }} --> 13 14 {%- if logo %}<img src="{{ pathto('_static/' + logo, 1) }}">{%- endif %} 15 {%- endblock %} 16 {% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%} 17 </a> 18 </div> 19 20 <div class="collapse navbar-collapse nav-collapse"> 21 <ul class="nav navbar-nav"> 22 {% block navbartoc %} 23 {% include "globaltoc.html" %} 24 {% if theme_navbar_pagenav %} 25 {% include "navbartoc.html" %} 26 {% endif %} 27 {% endblock %} 28 {% if theme_navbar_sidebarrel %} 29 {% block sidebarrel %} 30 {% include "relations.html" %} 31 {% endblock %} 32 {% endif %} 33 <li class="divider-vertical"></li> 34 {% if theme_navbar_links %} 35 {%- for link in theme_navbar_links %} 36 <li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li> 37 {%- endfor %} 38 {% endif %} 39 <li><a href="{{ github_url }}"><img src="_static/icon-github.png" height="20" width="20"></a></li> 40 {% block navbarextra %} 41 {% endblock %} 42 {% if theme_source_link_position == "nav" %} 43 <li class="hidden-sm">{% include "sourcelink.html" %}</li> 44 {% endif %} 45 </ul> 46 {% block navbarsearch %} 47 {% include "navbarsearchbox.html" %} 48 {% endblock %} 49 </div> 50 </div> 51 </div> 52