Make READMEs clearer wrt versions
This commit is contained in:
parent
0d7ec93861
commit
3d97d82655
@ -92,8 +92,13 @@ fi
|
|||||||
echo "+++ Versioning documentation and examples"
|
echo "+++ Versioning documentation and examples"
|
||||||
|
|
||||||
# Update the docs to match this version.
|
# Update the docs to match this version.
|
||||||
$SED -ri -e "s/HEAD/${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}/" docs/README.md
|
DOCS_TO_EDIT=(docs/README.md examples/README.md)
|
||||||
$SED -ri -e "s/HEAD/${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}/" examples/README.md
|
for DOC in "${DOCS_TO_EDIT[@]}"; do
|
||||||
|
$SED -ri \
|
||||||
|
-e "s/HEAD/${NEW_VERSION}/" \
|
||||||
|
-e "/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d" \
|
||||||
|
"${DOC}"
|
||||||
|
done
|
||||||
|
|
||||||
# Update API descriptions to match this version.
|
# 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
|
$SED -ri -e "s|(releases.k8s.io)/HEAD|\1/${NEW_VERSION}|" pkg/api/v[0-9]*/types.go
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
# Kubernetes Documentation
|
# Kubernetes Documentation: HEAD
|
||||||
|
|
||||||
**Note**
|
<!-- BEGIN STRIP_FOR_RELEASE -->
|
||||||
This documentation is current for HEAD.
|
|
||||||
|
|
||||||
Documentation for previous releases is available at
|
<h1>*** PLEASE NOTE: This documentation applies to the HEAD of the source
|
||||||
http://releases.k8s.io/vX.Y.Z/docs.
|
tree only. If you are using a released version of Kubernetes, you almost
|
||||||
* [releases.k8s.io/v0.20.0](http://releases.k8s.io/v0.20.0/docs)
|
certainly want the docs that go with that version.</h1>
|
||||||
* [releases.k8s.io/v0.19.0](http://releases.k8s.io/v0.19.0/docs)
|
|
||||||
* [releases.k8s.io/v0.18.1](http://releases.k8s.io/v0.18.1/docs)
|
<strong>Documentation for specific releases can be found at
|
||||||
* [releases.k8s.io/v0.17.1](http://releases.k8s.io/v0.17.1/docs)
|
[releases.k8s.io](http://releases.k8s.io).</strong>
|
||||||
|
|
||||||
|
<!-- END STRIP_FOR_RELEASE -->
|
||||||
|
|
||||||
|
## Where to start
|
||||||
|
|
||||||
* The [User's guide](user-guide.md) is for anyone who wants to run programs and
|
* The [User's guide](user-guide.md) is for anyone who wants to run programs and
|
||||||
services on an existing Kubernetes cluster.
|
services on an existing Kubernetes cluster.
|
||||||
|
@ -1,14 +1,20 @@
|
|||||||
# Examples
|
# Kubernetes Examples: HEAD
|
||||||
|
|
||||||
This directory contains a number of different examples of how to run applications with Kubernetes.
|
<!-- BEGIN STRIP_FOR_RELEASE -->
|
||||||
|
|
||||||
**Note**
|
<h1>*** PLEASE NOTE: These examples apply to the HEAD of the source
|
||||||
This documentation is current for HEAD.
|
tree only. If you are using a released version of Kubernetes, you almost
|
||||||
|
certainly want the examples that go with that version.</h1>
|
||||||
|
|
||||||
Examples for previous releases is available in their respective branches:
|
<strong>Examples for specific releases can be found at
|
||||||
* [v0.19.0](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/release-0.19.0/examples)
|
[releases.k8s.io](http://releases.k8s.io).</strong>
|
||||||
* [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)
|
<!-- END STRIP_FOR_RELEASE -->
|
||||||
|
|
||||||
|
##
|
||||||
|
|
||||||
|
This directory contains a number of different examples of how to run
|
||||||
|
applications with Kubernetes.
|
||||||
|
|
||||||
|
|
||||||
[]()
|
[]()
|
||||||
|
Loading…
Reference in New Issue
Block a user