Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
dd378f14
Commit
dd378f14
authored
Jul 08, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10896 from thockin/docs-versioning-2
Make READMEs even more obviously versioned.
parents
f427b997
3d97d826
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
26 deletions
+46
-26
mark-new-version.sh
build/mark-new-version.sh
+7
-2
README.md
docs/README.md
+25
-16
README.md
examples/README.md
+14
-8
No files found.
build/mark-new-version.sh
View file @
dd378f14
...
@@ -92,8 +92,13 @@ fi
...
@@ -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
...
...
docs/README.md
View file @
dd378f14
# 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
)
*
[
releases.k8s.io/v0.17.1
](
http://releases.k8s.io/v0.17.1/docs
)
*
The
[
User's guide
](
user-guide.md
)
is for anyone who wants to run programs and services on an existing Kubernetes cluster.
<strong>
Documentation for specific releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
</strong>
*
The
[
Cluster Admin's guide
](
cluster-admin-guide.md
)
is for anyone setting up a Kubernetes cluster or administering it.
<!-- END STRIP_FOR_RELEASE -->
*
The
[
Developer guide
](
developer-guide.md
)
is for anyone wanting to write programs that access the kubernetes API,
## Where to start
write plugins or extensions, or modify the core code of kubernetes.
*
The
[
Kubectl Command Line Interface
](
kubectl.md
)
is a detailed reference on the
`kubectl`
CLI.
*
The
[
User's guide
](
user-guide.md
)
is for anyone who wants to run programs and
services on an existing Kubernetes cluster.
*
The
[
API object documentation
](
http://kubernetes.io/third_party/swagger-ui/
)
is a detailed description of all fields found in core API objects.
*
The
[
Cluster Admin's guide
](
cluster-admin-guide.md
)
is for anyone setting up
a Kubernetes cluster or administering it.
*
The
[
Developer guide
](
developer-guide.md
)
is for anyone wanting to write
programs that access the kubernetes API, write plugins or extensions, or
modify the core code of kubernetes.
*
The
[
Kubectl Command Line Interface
](
kubectl.md
)
is a detailed reference on
the
`kubectl`
CLI.
*
The
[
API object documentation
](
http://kubernetes.io/third_party/swagger-ui/
)
is a detailed description of all fields found in core API objects.
*
An overview of the
[
Design of Kubernetes
](
design
)
*
An overview of the
[
Design of Kubernetes
](
design
)
*
There are example files and walkthroughs in the
[
examples
](
../examples
)
folder.
*
There are example files and walkthroughs in the
[
examples
](
../examples
)
folder.
[

]()
[

]()
examples/README.md
View file @
dd378f14
#
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.
[

]()
[

]()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment