Skip to content

Commit 97ff85a

Browse files
authored
hide version selector and make v1 deafult (#6480)
1 parent fd80621 commit 97ff85a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/layouts/partials/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a>
2020
</li>
2121
{{ end }}
22-
{{ if .Site.Params.versions }}
22+
{{ if and .Site.Params.versions (not .IsHome) }}
2323
<li class="nav-item dropdown d-none d-lg-block">
2424
{{ partial "navbar-version-selector.html" . }}
2525
</li>

docs/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
const dir = "/public"
2929

3030
// Don't update here manually. /hack/gen-release-docs.sh does.
31-
const latestPath = "/docs-v0.55.x/"
31+
const latestPath = "/docs-v1.0.x/"
3232

3333
func main() {
3434
var (

0 commit comments

Comments
 (0)