| 1 |
{# |
| 2 |
https://stackoverflow.com/questions/25243482/how-to-add-sphinx-generated-index-to-the-sidebar-when-using-read-the-docs-theme |
| 3 |
#} |
| 4 |
{% extends "!layout.html" %} |
| 5 |
|
| 6 |
{% block sidebartitle %} |
| 7 |
|
| 8 |
{# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #} |
| 9 |
{# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #} |
| 10 |
{# check sphinx_rtd_theme/layout.html:sidebartitle if this snippet has become outdated #} |
| 11 |
|
| 12 |
<a class="logo" href="{{ pathto(root_doc) }}"> |
| 13 |
<img class="logo" src="{{ logo_url }}" /> |
| 14 |
{%- set nav_version = version %} |
| 15 |
{% if current_version %} |
| 16 |
{%- set nav_version = current_version %} |
| 17 |
{% endif %} |
| 18 |
{# don't show the version on RTD if it's the default #} |
| 19 |
{% if nav_version != 'latest' %} |
| 20 |
<div class="trio-version">{{ nav_version }}</div> |
| 21 |
{% endif %} |
| 22 |
</a> |
| 23 |
|
| 24 |
{% include "searchbox.html" %} |
| 25 |
|
| 26 |
<p class="trio-help-hint">Need help? <a |
| 27 |
href="https://gitter.im/python-trio/general">Live chat</a>, <a |
| 28 |
href="https://trio.discourse.group">forum</a>, <a |
| 29 |
href="https://stackoverflow.com/questions/ask?tags=python+python-trio">StackOverflow</a>.</p> |
| 30 |
{% endblock %} |