{%- if theme_sidebar_mode == 'toctree' and theme_display_toc %}
<div id="right-sidebar" class="d-none d-xl-block col-xl-3 docs-toc d-print-none">
  <div class="docs-toc-meta ms-2 pb-1 pt-2 mb-0">
    {%- if edit_enabled == True and url_edit|length > 0 %}
      <a href="{{url_edit}}/{{pagename}}{{page_source_suffix}}" target="_blank"><i class="fa-regular fa-pen-to-square me-2"></i>Edit page</a>
    {% endif %}
    {%- if bug_report_enabled == True and url_bug_report|length > 0 %}
      <a href="{{ url_bug_report }}?title={{title}}&body=Issue on page:
        {{url_source}}/{{pagename}}{{page_source_suffix}}" target="_blank"><i class="fa-solid fa-bug me-2"></i>Report Documentation Bug</a>
    {% endif %}
	  {%- if pdf_link %}
    <a id="pdfLink1" href="" target="_blank" title="Download PDF"><i class="fa-solid fa-file-pdf me-2"></i> Download PDF</a>
    {% endif %}
<!--
    {% if prev %}
      <a href="{{ prev.link|e }}"><i class="fa-solid fa-angles-left" title="Previous: {{ prev.title|striptags }}"></i>Previous</a>
    {% endif %}
    {% if next %}
      <a href="{{ next.link|e }}"><i class="fa-solid fa-angles-right" data-toggle="tooltip" data-placement="top" title="Next: {{ next.title|striptags }}"></i>Next</a>
    {% endif %}
-->
  </div>
	<strong class="d-block h6 my-2 pb-2 border-bottom">{% if theme_display_global_toc_section %}Page {% endif %}Contents</strong>
	<nav id="TableOfContents">
		{{ toc }}
	</nav>
</div>
{%- endif %}
