@@ -86,12 +86,12 @@ The remaining steps refer to your base directory as `<rdocs-base>`.
86
86
87
87
In your local k8s.io/kubernetes repository, check out the branch of interest,
88
88
and make sure it is up to date. For example, if you want to generate docs for
89
- Kubernetes 1.17 , you could use these commands:
89
+ Kubernetes {{< skew prevMinorVersion >}}.0 , you could use these commands:
90
90
91
91
``` shell
92
92
cd < k8s-base>
93
- git checkout v1.17 .0
94
- git pull https://github.com/kubernetes/kubernetes v1.17 .0
93
+ git checkout v{{ < skew prevMinorVersion > }} .0
94
+ git pull https://github.com/kubernetes/kubernetes {{ < skew prevMinorVersion > }} .0
95
95
```
96
96
97
97
If you do not need to edit the ` kubectl ` source code, follow the instructions for
@@ -109,7 +109,7 @@ local kubernetes/kubernetes repository, and then submit a pull request to the ma
109
109
is an example of a pull request that fixes a typo in the kubectl source code.
110
110
111
111
Monitor your pull request, and respond to reviewer comments. Continue to monitor your
112
- pull request until it is merged into the master branch of the kubernetes/kubernetes repository.
112
+ pull request until it is merged into the target branch of the kubernetes/kubernetes repository.
113
113
114
114
## Cherry picking your change into a release branch
115
115
@@ -118,9 +118,10 @@ Kubernetes release. If you want your change to appear in the docs for a Kubernet
118
118
version that has already been released, you need to propose that your change be
119
119
cherry picked into the release branch.
120
120
121
- For example, suppose the master branch is being used to develop Kubernetes 1.10,
122
- and you want to backport your change to the release-1.15 branch. For instructions
123
- on how to do this, see
121
+ For example, suppose the master branch is being used to develop Kubernetes
122
+ {{< skew currentVersion >}}
123
+ and you want to backport your change to the release-{{< skew prevMinorVersion >}} branch. For
124
+ instructions on how to do this, see
124
125
[ Propose a Cherry Pick] ( https://git.k8s.io/community/contributors/devel/sig-release/cherry-picks.md ) .
125
126
126
127
Monitor your cherry-pick pull request until it is merged into the release branch.
@@ -138,14 +139,14 @@ Go to `<rdocs-base>`. On you command line, set the following environment variabl
138
139
* Set ` K8S_ROOT ` to ` <k8s-base> ` .
139
140
* Set ` K8S_WEBROOT ` to ` <web-base> ` .
140
141
* Set ` K8S_RELEASE ` to the version of the docs you want to build.
141
- For example, if you want to build docs for Kubernetes 1.17 , set ` K8S_RELEASE ` to 1.17 .
142
+ For example, if you want to build docs for Kubernetes {{< skew prevMinorVersion >}} , set ` K8S_RELEASE ` to {{< skew prevMinorVersion >}} .
142
143
143
144
For example:
144
145
145
146
``` shell
146
147
export K8S_WEBROOT=$GOPATH /src/github.com/< your-username> /website
147
148
export K8S_ROOT=$GOPATH /src/k8s.io/kubernetes
148
- export K8S_RELEASE=1.17
149
+ export K8S_RELEASE={{ < skew prevMinorVersion > }}
149
150
```
150
151
151
152
## Creating a versioned directory
@@ -165,13 +166,14 @@ make createversiondirs
165
166
166
167
In your local ` <k8s-base> ` repository, checkout the branch that has
167
168
the version of Kubernetes that you want to document. For example, if you want
168
- to generate docs for Kubernetes 1.17, checkout the ` v1.17.0 ` tag. Make sure
169
+ to generate docs for Kubernetes {{< skew prevMinorVersion >}}.0, check out the
170
+ ` v{{< skew prevMinorVersion >}} ` tag. Make sure
169
171
you local branch is up to date.
170
172
171
173
``` shell
172
174
cd < k8s-base>
173
- git checkout v1.17 .0
174
- git pull https://github.com/kubernetes/kubernetes v1.17 .0
175
+ git checkout v{{ < skew prevMinorVersion > }} .0
176
+ git pull https://github.com/kubernetes/kubernetes v{{ < skew prevMinorVersion > }} .0
175
177
```
176
178
177
179
## Running the doc generation code
0 commit comments