diff --git a/build/mark-new-version.sh b/build/mark-new-version.sh index 97df03f97e4..ff8abb15bca 100755 --- a/build/mark-new-version.sh +++ b/build/mark-new-version.sh @@ -96,7 +96,7 @@ DOCS_TO_EDIT=(docs/README.md examples/README.md) for DOC in "${DOCS_TO_EDIT[@]}"; do $SED -ri \ -e '//,//d' \ - -e "s/HEAD/${NEW_VERSION}/" \ + -e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \ "${DOC}" done diff --git a/docs/README.md b/docs/README.md index ad3f4b00454..7e6171d30dc 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ -# Kubernetes Documentation: HEAD +# Kubernetes Documentation: releases.k8s.io/HEAD diff --git a/examples/README.md b/examples/README.md index 651a034f306..0d67871ef57 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,4 +1,4 @@ -# Kubernetes Examples: HEAD +# Kubernetes Examples: releases.k8s.io/HEAD