File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change
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
+ < a href ="{{ pathto(master_doc) }} " class ="icon icon-home "> {{ project }}
8
+ < img class ="logo " src ="{{ pathto('_static/' + logo, 1) }} " />
9
+ {%- set nav_version = version %}
10
+ {% if READTHEDOCS and current_version %}
11
+ {%- set nav_version = current_version %}
12
+ {% endif %}
13
+ {# don't show the version on RTD if it's the default #}
14
+ {% if nav_version != 'latest' %}
15
+ < div class ="trio-version "> {{ nav_version }}</ div >
16
+ {% endif %}
17
+ </ a >
18
+
19
+ {% include "searchbox.html" %}
20
+
21
+ < p class ="trio-help-hint "> Need help? < a
22
+ href ="https://gitter.im/python-trio/general "> Live chat</ a > , < a
23
+ href ="https://trio.discourse.group "> forum</ a > , < a
24
+ href ="https://stackoverflow.com/questions/ask?tags=python+python-trio "> StackOverflow</ a > .</ p >
25
+ {% endblock %}
Original file line number Diff line number Diff line change 67
67
autodoc_member_order = "bysource"
68
68
69
69
# Add any paths that contain templates here, relative to this directory.
70
- templates_path = []
70
+ templates_path = ['_templates' ]
71
71
72
72
# The suffix(es) of source filenames.
73
73
# You can specify multiple suffix as a list of string:
95
95
96
96
html_favicon = "_static/favicon-32.png"
97
97
html_logo = "../../logo/wordmark-transparent.svg"
98
- # & down below in html_theme_options we set logo_only=True
99
98
100
99
# The language for content autogenerated by Sphinx. Refer to documentation
101
100
# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments