-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix versionize-docs.sh and mark-new-version.sh to rewrite links to release branch rather than to tag #16553
fix versionize-docs.sh and mark-new-version.sh to rewrite links to release branch rather than to tag #16553
Conversation
Labelling this PR as size/S |
I don't think this is right. We should discuss further in #16522. We do, for official releases, (which is what |
GCE e2e test build/test passed for commit 43f047414e32c0ca4fc9510eeafde60143f7eeba. |
|
||
if [ "$#" -lt 1 ]; then | ||
echo "Usage: versionize-docs <release-version>" | ||
echo "Usage: versionize-docs.sh <release-version>, e.g., versionize-docs.sh release-1.1." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<release-branch>
rather than <release-version>
@@ -27,11 +27,12 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. | |||
|
|||
NEW_VERSION=${1-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be less confusing to rename this variable to RELEASE_BRANCH.
43f0474
to
1eabd09
Compare
@bgrant0607 fixed. PTAL. Thanks. |
@@ -59,11 +60,11 @@ done | |||
for doc in "${md_files[@]}"; do | |||
$SED -ri \ | |||
-e '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \ | |||
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|g" \ | |||
-e "s|(releases.k8s.io)/[^/]+|\1/${RELEASE_BRANCH}|g" \ | |||
"${doc}" | |||
|
|||
# Replace /HEAD in html preview links with /NEW_VERSION. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/NEW_VERSION/RELEASE_BRANCH/
…lease branch rather than to tag
1eabd09
to
819cbbe
Compare
LGTM |
Merging |
fix versionize-docs.sh and mark-new-version.sh to rewrite links to release branch rather than to tag
…#16553-upstream-release-1.1 Automated cherry pick of #16553
GCE e2e test build/test passed for commit 1eabd09430ebc25026cbfbf35c548323deff2306. |
GCE e2e test build/test passed for commit 819cbbe. |
…y-pick-of-#16553-upstream-release-1.1 Automated cherry pick of kubernetes#16553
…y-pick-of-#16553-upstream-release-1.1 Automated cherry pick of kubernetes#16553
Fix #16522.
@nikhiljindal @janetkuo @bgrant0607