Skip to content

Commit

Permalink
docs: Fix website version dropdown (#7831)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Mar 4, 2025
1 parent e8279c5 commit 4e35023
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ editWebsiteVersionsMenu() {
local versions version

# shellcheck disable=SC2207
versions=($(find website/content/en/* -maxdepth 0 -type d -name "*" -print0 | xargs -0 -r -n 1 basename | grep -v "docs\|preview"))
versions=($(find website/content/en/* -maxdepth 0 -type d -name "*" -print0 | xargs -0 -r -n 1 basename | grep -v "docs\|preview" | sort -r))
versions+=('preview')

yq -i '.params.versions = []' website/hugo.yaml
Expand Down
8 changes: 4 additions & 4 deletions website/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ params:
latest_release_version: "1.3.0"
latest_k8s_version: "1.32"
versions:
- v0.32
- v1.0
- v1.1
- v1.2
- v1.3
- v1.2
- v1.1
- v1.0
- v0.32
- preview
menu:
main:
Expand Down

0 comments on commit 4e35023

Please sign in to comment.