Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
{{ range $i, $version := $versions }}
<option value="{{ $version.name }}">{{ $version.name }}</option>
{{ end }}
<option value="3.9">3.9</option>
<option value="3.8">3.8</option>
</select>
</div>
19 changes: 0 additions & 19 deletions site/themes/arangodb-docs-theme/static/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,25 +414,12 @@ function setVersionSelector(version) {
}
}

function handleOldDocsVersion(version) {
var legacyUrl = "https://www.arangodb.com/docs/" + version + "/";
var handle = window.open(legacyUrl, "_blank");
if (!handle) window.location.href = legacyUrl;
return;
}

function getCurrentVersion() {
var urlVersion = stableVersion.name

if (window.location.pathname.split("/").length > 0) {
newVersion = getVersionFromURL()

if (newVersion === "3.8" || newVersion === "3.9") {
handleOldDocsVersion(newVersion)
versionSelector.value = urlVersion;
return;
}

if (getVersionInfo(newVersion) == undefined) {
loadNotFoundPage();
return;
Expand All @@ -451,12 +438,6 @@ function changeVersion() {
var versionSelector = document.getElementById("arangodb-version");
var newVersion = versionSelector.options[versionSelector.selectedIndex].value;

if (newVersion === "3.8" || newVersion === "3.9") {
handleOldDocsVersion(newVersion)
versionSelector.value = oldVersion;
return;
}

try {
localStorage.setItem('docs-version', newVersion);
renderVersion();
Expand Down