There was an error while loading. Please reload this page.
1 parent 91e294f commit 89c6219Copy full SHA for 89c6219
1 file changed
docs/source/_templates/layout.html
@@ -0,0 +1,17 @@
1
+{% extends "!layout.html" %}
2
+
3
+{% block sidebartitle %}
4
+{{ super() }}
5
6
+{% if versions %}
7
+<div class="version-switcher" style="margin: 0.5em 0;">
8
+ <select onchange="if (this.value) window.location.href=this.value;" style="width: 100%; padding: 0.2em;">
9
+ {% for v in versions %}
10
+ <option value="{{ v.url }}" {% if v.name==current_version.name %}selected{% endif %}>
11
+ {{ v.name }}
12
+ </option>
13
+ {% endfor %}
14
+ </select>
15
+</div>
16
+{% endif %}
17
+{% endblock %}
0 commit comments