Skip to content
Snippets Groups Projects
Verified Commit 2a9bab35 authored by Martin Weise's avatar Martin Weise
Browse files

Updated switcher

parent 0975ca6a
Branches master
No related tags found
No related merge requests found
......@@ -4,22 +4,8 @@
<label for="version">Version</label>
<select style="margin-left:8px;" id="version" name="version" onchange="switchVersion(this.options[this.selectedIndex].value)">
<option value="latest">latest</option>
<option value="1.4">1.4</option>
<option value="1.3">1.3</option>
<option value="1.4.1">1.4.1</option>
<option value="1.4.0">1.4.0</option>
<option value="1.3.0">1.3.0</option>
</select>
<script>
function getVersion() {
const segments = location.pathname.split('/')
if (segments.length >= 4) {
return segments[3]
} else {
return '1.4'
}
}
function switchVersion(value) {
if (!value) { return }
this.location.href = location.protocol + '//' + location.host + '/infrastructures/dbrepo/' + value + '/'
}
document.getElementById("version").value = getVersion()
</script>
{% endblock %}
......@@ -7,6 +7,7 @@ target/
# generated
ready
schema.xsd
swagger/
# docs
.docs/.swagger/dist/
......
......@@ -42,6 +42,8 @@ nav:
- contact.md
extra_css:
- stylesheets/extra.css
extra_javascript:
- scripts/extra.js
theme:
favicon: images/signet_white.png
custom_dir: .docs/overrides
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment