Skip to content

Commit e93a4ff

Browse files
authored
Remove 3.9 and 3.8 from version selector (#773)
1 parent 445c081 commit e93a4ff

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

site/themes/arangodb-docs-theme/layouts/partials/version-selector.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
{{ range $i, $version := $versions }}
55
<option value="{{ $version.name }}">{{ $version.name }}</option>
66
{{ end }}
7-
<option value="3.9">3.9</option>
8-
<option value="3.8">3.8</option>
97
</select>
108
</div>

site/themes/arangodb-docs-theme/static/js/theme.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -414,25 +414,12 @@ function setVersionSelector(version) {
414414
}
415415
}
416416

417-
function handleOldDocsVersion(version) {
418-
var legacyUrl = "https://www.arangodb.com/docs/" + version + "/";
419-
var handle = window.open(legacyUrl, "_blank");
420-
if (!handle) window.location.href = legacyUrl;
421-
return;
422-
}
423-
424417
function getCurrentVersion() {
425418
var urlVersion = stableVersion.name
426419

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

430-
if (newVersion === "3.8" || newVersion === "3.9") {
431-
handleOldDocsVersion(newVersion)
432-
versionSelector.value = urlVersion;
433-
return;
434-
}
435-
436423
if (getVersionInfo(newVersion) == undefined) {
437424
loadNotFoundPage();
438425
return;
@@ -451,12 +438,6 @@ function changeVersion() {
451438
var versionSelector = document.getElementById("arangodb-version");
452439
var newVersion = versionSelector.options[versionSelector.selectedIndex].value;
453440

454-
if (newVersion === "3.8" || newVersion === "3.9") {
455-
handleOldDocsVersion(newVersion)
456-
versionSelector.value = oldVersion;
457-
return;
458-
}
459-
460441
try {
461442
localStorage.setItem('docs-version', newVersion);
462443
renderVersion();

0 commit comments

Comments
 (0)