Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
update website for v0.23 (#303)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr authored May 19, 2021
1 parent 83e18a7 commit d469757
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# RELEASE-ITEM: 'latest_github_branch' and 'version' get updated each release

# GitHub branch (latest release)
latest_github_branch = "release-0.22"
latest_github_branch = "release-0.23"
# Default version (latest release)
version = "v0.22"
version = "v0.23"
########################

# Section labels for versions
Expand Down
2 changes: 1 addition & 1 deletion config/local/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ releaselabel = "Local Preview Build: "
# Set to "docs" path
# RELEASE-ITEM: 'version' gets updated each release
[[versions]]
version = "v0.22"
version = "v0.23"
ghbranchname = "main"
url = "/docs/"
dirpath = "docs"
14 changes: 7 additions & 7 deletions config/production/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ no = 'Sorry to hear that. Please <a href="https://github.com/knative/docs/issues
# Set to "docs" path

[[versions]]
version = "v0.22"
ghbranchname = "release-0.21"
version = "v0.23"
ghbranchname = "release-0.23"
url = "/docs/"
dirpath = "docs"

Expand All @@ -53,6 +53,11 @@ no = 'Sorry to hear that. Please <a href="https://github.com/knative/docs/issues
###################
# Prefix all past versions with release # "v#.#-docs"

[[versions]]
version = "v0.22"
ghbranchname = "release-0.22"
url = "/v0.22-docs/"
dirpath = "v0.22-docs"
[[versions]]
version = "v0.21"
ghbranchname = "release-0.21"
Expand All @@ -63,11 +68,6 @@ no = 'Sorry to hear that. Please <a href="https://github.com/knative/docs/issues
ghbranchname = "release-0.20"
url = "/v0.20-docs/"
dirpath = "v0.20-docs"
[[versions]]
version = "v0.19"
ghbranchname = "release-0.16"
url = "/v0.19-docs/"
dirpath = "v0.19-docs"


[[versions]]
Expand Down
2 changes: 1 addition & 1 deletion config/staging/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ releaselabel = "Pull Request Preview: "
# Set PRs to build to the "docs" path
# RELEASE-ITEM: 'version' gets updated each release
[[versions]]
version = "v0.22"
version = "v0.23"
ghbranchname = "main"
url = "/docs/"
dirpath = "docs"
8 changes: 7 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Update to the latest version number
# Enable permanent links to a new release (so links persist after release is archived)
[[redirects]]
from = "/v0.22-docs/*"
from = "/v0.23-docs/*"
to = "/docs/:splat"
status = 200

Expand All @@ -30,10 +30,16 @@
# back to the latest version in case old bookmarks or articles still point to
# one of those "previously published" versions

[[redirects]]
from = "/v0.19-docs/*"
to = "/docs/"
status = 301

[[redirects]]
from = "/v0.18-docs/*"
to = "/docs/"
status = 301

[[redirects]]
from = "/v0.17-docs/*"
to = "/docs/"
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs-version-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Version number of the latest release
# RELEASE-ITEM: This gets updated every release
LATESTVERSION="22"
LATESTVERSION="23"

# Branch name of the latest release
DEFAULTBRANCH="release-0.$LATESTVERSION"
Expand Down

0 comments on commit d469757

Please sign in to comment.