diff --git a/build/mark-new-version.sh b/build/mark-new-version.sh index 44c7eb2091c..1c445c0332f 100755 --- a/build/mark-new-version.sh +++ b/build/mark-new-version.sh @@ -92,8 +92,13 @@ fi echo "+++ Versioning documentation and examples" # Update the docs to match this version. -$SED -ri -e "s/HEAD/${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}/" docs/README.md -$SED -ri -e "s/HEAD/${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}/" examples/README.md +DOCS_TO_EDIT=(docs/README.md examples/README.md) +for DOC in "${DOCS_TO_EDIT[@]}"; do + $SED -ri \ + -e "s/HEAD/${NEW_VERSION}/" \ + -e "//,//d" \ + "${DOC}" +done # Update API descriptions to match this version. $SED -ri -e "s|(releases.k8s.io)/HEAD|\1/${NEW_VERSION}|" pkg/api/v[0-9]*/types.go diff --git a/docs/README.md b/docs/README.md index 1def0317607..859deba9001 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,12 +1,7 @@ -# Kubernetes Documentation +# Kubernetes Documentation: v0.21.1 -**Note** -This documentation is current for 0.21.0. -Documentation for previous releases is available in their respective branches: - * [v0.19.0](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/release-0.19.0/docs) - * [v0.18.1](https://github.com/GoogleCloudPlatform/kubernetes/tree/release-0.18/docs) - * [v0.17.1](https://github.com/GoogleCloudPlatform/kubernetes/tree/release-0.17/docs) +## Where to start * The [User's guide](user-guide.md) is for anyone who wants to run programs and services on an existing Kubernetes cluster. diff --git a/examples/README.md b/examples/README.md index fc6954a1af1..67eebfae7df 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,14 +1,10 @@ -# Examples +# Kubernetes Examples: v0.21.1 -This directory contains a number of different examples of how to run applications with Kubernetes. -**Note** -This documentation is current for 0.21.0. +## -Examples for previous releases is available in their respective branches: - * [v0.19.0](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/release-0.19.0/examples) - * [v0.18.1](https://github.com/GoogleCloudPlatform/kubernetes/tree/release-0.18/examples) - * [v0.17.1](https://github.com/GoogleCloudPlatform/kubernetes/tree/release-0.17/examples) +This directory contains a number of different examples of how to run +applications with Kubernetes. [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/README.md?pixel)]()