forked from godotengine/godot-docs
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathversions.html
46 lines (41 loc) · 1.51 KB
/
versions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{# Add rst-badge after rst-versions for small badge style. #}
{% set display_version = version -%}
{% set listed_languages = ({"en":"#", "de":"#", "es":"#", "fr":"#"}).items() -%}
{% set listed_versions = ({"stable":"#", "latest":"#"}).items() -%}
{% if READTHEDOCS and current_version %}
{% set display_version = current_version -%}
{% endif %}
{% if READTHEDOCS and versions %}
{% set listed_versions = versions -%}
{% endif %}
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Read the Docs</span>
v: {{ display_version }}{% if display_version != godot_version %} ({{ godot_version }}){% endif %}
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
{#
The contents of this element will be replaced in production.
But we can still have some mock data for testing.
#}
<dl>
<dt>{{ _('Languages') }}</dt>
{% for slug, url in listed_languages %}
<dd><a href="{{ url }}">{{ slug }}</a></dd>
{% endfor %}
</dl>
<dl>
<dt>{{ _('Versions') }}</dt>
{% for slug, url in listed_versions %}
<dd><a href="{{ url }}">{{ slug }}</a></dd>
{% endfor %}
</dl>
<hr>
<small>
<span>Hosted by <a href="https://readthedocs.org">Read the Docs</a></span>
<a href="https://docs.readthedocs.io/page/privacy-policy.html">Privacy Policy</a>
</small>
{##}
</div>
</div>