Skip to content
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

Merged
merged 1 commit into from
Oct 30, 2015

Conversation

caesarxuchao
Copy link
Member

@k8s-github-robot
Copy link

Labelling this PR as size/S

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 29, 2015
@ikehz
Copy link
Contributor

ikehz commented Oct 29, 2015

I don't think this is right. We should discuss further in #16522. We do, for official releases, (which is what mark-new-version is for,) point to actual tags, not the branch.

@ikehz ikehz added the area/release-eng Issues or PRs related to the Release Engineering subproject label Oct 29, 2015
@k8s-bot
Copy link

k8s-bot commented Oct 29, 2015

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."
Copy link
Member

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-}
Copy link
Member

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.

@bgrant0607 bgrant0607 added this to the v1.1 milestone Oct 29, 2015
@caesarxuchao caesarxuchao force-pushed the rewrite-build-scripts branch from 43f0474 to 1eabd09 Compare October 29, 2015 23:52
@caesarxuchao
Copy link
Member Author

@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.
Copy link
Member

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/

@caesarxuchao caesarxuchao force-pushed the rewrite-build-scripts branch from 1eabd09 to 819cbbe Compare October 30, 2015 00:02
@bgrant0607
Copy link
Member

LGTM

@bgrant0607
Copy link
Member

Merging

bgrant0607 added a commit that referenced this pull request Oct 30, 2015
fix versionize-docs.sh and mark-new-version.sh to rewrite links to release branch rather than to tag
@bgrant0607 bgrant0607 merged commit 5629632 into kubernetes:master Oct 30, 2015
bgrant0607 added a commit that referenced this pull request Oct 30, 2015
…#16553-upstream-release-1.1

Automated cherry pick of #16553
@k8s-bot
Copy link

k8s-bot commented Oct 30, 2015

GCE e2e test build/test passed for commit 1eabd09430ebc25026cbfbf35c548323deff2306.

@k8s-bot
Copy link

k8s-bot commented Oct 30, 2015

GCE e2e test build/test passed for commit 819cbbe.

shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this pull request Dec 1, 2016
…y-pick-of-#16553-upstream-release-1.1

Automated cherry pick of kubernetes#16553
shouhong pushed a commit to shouhong/kubernetes that referenced this pull request Feb 14, 2017
…y-pick-of-#16553-upstream-release-1.1

Automated cherry pick of kubernetes#16553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants