File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed
site/themes/arangodb-docs-theme Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 4
4
{{ range $i, $version := $versions }}
5
5
< option value ="{{ $version.name }} "> {{ $version.name }}</ option >
6
6
{{ end }}
7
- < option value ="3.9 "> 3.9</ option >
8
- < option value ="3.8 "> 3.8</ option >
9
7
</ select >
10
8
</ div >
Original file line number Diff line number Diff line change @@ -414,25 +414,12 @@ function setVersionSelector(version) {
414
414
}
415
415
}
416
416
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
-
424
417
function getCurrentVersion ( ) {
425
418
var urlVersion = stableVersion . name
426
419
427
420
if ( window . location . pathname . split ( "/" ) . length > 0 ) {
428
421
newVersion = getVersionFromURL ( )
429
422
430
- if ( newVersion === "3.8" || newVersion === "3.9" ) {
431
- handleOldDocsVersion ( newVersion )
432
- versionSelector . value = urlVersion ;
433
- return ;
434
- }
435
-
436
423
if ( getVersionInfo ( newVersion ) == undefined ) {
437
424
loadNotFoundPage ( ) ;
438
425
return ;
@@ -451,12 +438,6 @@ function changeVersion() {
451
438
var versionSelector = document . getElementById ( "arangodb-version" ) ;
452
439
var newVersion = versionSelector . options [ versionSelector . selectedIndex ] . value ;
453
440
454
- if ( newVersion === "3.8" || newVersion === "3.9" ) {
455
- handleOldDocsVersion ( newVersion )
456
- versionSelector . value = oldVersion ;
457
- return ;
458
- }
459
-
460
441
try {
461
442
localStorage . setItem ( 'docs-version' , newVersion ) ;
462
443
renderVersion ( ) ;
You can’t perform that action at this time.
0 commit comments