<div class="col-lg-3 col-md-4 col-sm-4 col-lg-pull-9 col-md-pull-8 col-sm-pull-8 order-1 docs-sidebar">
  <div class="btn-group docs-sidebar-releases">
    <button onclick="location.href='/'" class="btn docs-sidebar-home" data-toggle="tooltip" data-placement="top" title="{{ theme_root_title|striptags }} Home"><i class="fa fa-arrow-circle-o-left"></i></button>

{%- if theme_sidebar_dropdown == 'api_ref' %}
{% include 'sidebartoc_menu_apiref.html' %}
{%- else %}
{% include 'sidebartoc_menu.html' %}
{%- endif %}
  </div>
  <div class="docs-sidebar-toc">
  {%- if theme_display_global_toc_section %}
    <div class="docs-sidebar-section" id="table-of-contents">
      <a href="{{ pathto(master_doc) }}" class="docs-sidebar-section-title"><h4>{{project}} {{version}}</h4></a>
      {%- if theme_sidebar_search|tobool %}
      <form action="{{ pathto('search') }}" method="get" class="input-group input-group-sm ps-3 pe-2 pb-3">
        <input class="form-control" type="text" name="q" value="" placeholder="{% trans %}Search in {{project}}{% endtrans %}" aria-label="{% trans %}Search{% endtrans %}">
        <button class="btn btn-outline-secondary" type="submit"><i class="fa fa-search"></i></button>
      </form>
      {%- endif %}
      {%- if theme_sidebar_mode == 'toc' %}
      {{ toc }}
      {%- elif theme_sidebar_mode == 'toctree' %}
      {{ toctree(maxdepth=2) }}
      {%- endif %}
    </div>
  {%- endif %}
{% include 'localtoc.html' %}
  </div>
</div>
