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

add version 0.21.0 to docs build #256

Merged
merged 3 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# GitHub branch (latest release)
latest_github_branch = "release-0.17"
# Default version (latest release)
version = "v0.20"
version = "v0.21"
########################

# 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.20"
version = "v0.21"
ghbranchname = "master"
url = "/docs/"
dirpath = "docs"
Expand Down
15 changes: 8 additions & 7 deletions config/production/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ no = 'Sorry to hear that. Please <a href="https://github.com/knative/docs/issues
# Set to "docs" path

[[versions]]
version = "v0.20"
ghbranchname = "release-0.20"
version = "v0.21"
ghbranchname = "release-0.21"
url = "/docs/"
dirpath = "docs"

Expand All @@ -49,6 +49,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.20"
ghbranchname = "release-0.20"
url = "/v0.20-docs/"
dirpath = "v0.20-docs"
[[versions]]
version = "v0.19"
ghbranchname = "release-0.16"
Expand All @@ -59,11 +64,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/knative/docs/issues
ghbranchname = "release-0.18"
url = "/v0.18-docs/"
dirpath = "v0.18-docs"
[[versions]]
version = "v0.17"
ghbranchname = "release-0.17"
url = "/v0.17-docs/"
dirpath = "v0.17-docs"


[[versions]]
version = "Archives"
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.20"
version = "v0.21"
ghbranchname = "master"
url = "/docs/"
dirpath = "docs"
Expand Down
7 changes: 6 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.20-docs/*"
from = "/v0.21-docs/*"
to = "/docs/:splat"
status = 200

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

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

[[redirects]]
from = "/v0.16-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="20"
LATESTVERSION="21"

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