File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
site/themes/arangodb-docs-theme Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2727 {{- end }}
2828 < link rel ="canonical " href ="{{ delimit $s "/" }}">
2929 {{- end }}
30+ {{- /* TODO: Set all available versions on non-versioned pages?
3031 {{- $shortVersions := slice }}
3132 {{- $versions := index site.Data.versions "/arangodb/" }}
3233 {{- range $version := $versions }}
3334 {{- $shortVersions = $shortVersions | append (cond (eq $version.name $version.alias) $version.name $version.alias) }}
3435 {{- end }}
3536 < meta name ="docsearch:version " content ="{{ delimit $shortVersions ", " }}">
37+ */}}
3638{{- end }}
Original file line number Diff line number Diff line change @@ -655,11 +655,7 @@ window.onload = () => {
655655
656656 loadPage ( window . location . href )
657657
658- if ( getVersionInfo ( getVersionFromURL ( ) ) != undefined ) {
659- window . setupDocSearch ( getVersionInfo ( getVersionFromURL ( ) ) . name ) ;
660- } else {
661- window . setupDocSearch ( stableVersion ) ;
662- }
658+ window . setupDocSearch ( currentVersion ?? stableVersion ) ;
663659
664660 // Add central click handler to document
665661 document . addEventListener ( "click" , handleDocumentClick ) ;
You can’t perform that action at this time.
0 commit comments