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 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 > 
Original file line number Diff line number Diff 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- 
424417function  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 ( ) ; 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments