Skip to content

Commit c9d2ef9

Browse files
committed
Merge branch 'master' into develop
2 parents 90aa599 + 91f0442 commit c9d2ef9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
File renamed without changes.

_templates/pio-versions.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{# Keep in sync with https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/versions.html #}
2+
{# Add rst-badge after rst-versions for small badge style. #}
3+
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}">
4+
<span class="rst-current-version" data-toggle="rst-current-version">
5+
<span class="fa fa-book"> Documentation</span>
6+
v{{ release }} ({{ "latest" if is_latest else "stable" }})
7+
<span class="fa fa-caret-down"></span>
8+
</span>
9+
<div class="rst-other-versions">
10+
<dl>
11+
<dt>{{ _('Versions') }}</dt>
12+
{% for slug, url in versions %}
13+
<dd><a href="{{ url }}">{{ slug }}</a></dd>
14+
{% endfor %}
15+
</dl>
16+
<dl>
17+
<dt>{{ _('On Github') }}</dt>
18+
<dd><a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}"> {{ _('View') }}</a></dd>
19+
<dd><a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/edit/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}"> {{ _('Edit') }}</a></dd>
20+
</dl>
21+
<dl>
22+
<dt>{{ _('Search') }}</dt>
23+
<dd>{% include "searchbox.html" %}</dd>
24+
</dl>
25+
</div>
26+
</div>

0 commit comments

Comments
 (0)