2016-10-15 00:45:21 +00:00
|
|
|
---
|
2016-12-15 20:16:54 +00:00
|
|
|
title: Creating a Documentation Pull Request
|
2016-10-15 00:45:21 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
{% capture overview %}
|
|
|
|
|
|
|
|
To contribute to the Kubernetes documentation, create a pull request against the
|
|
|
|
[kubernetes/kubernetes.github.io](https://github.com/kubernetes/kubernetes.github.io){: target="_blank"}
|
|
|
|
repository. This page shows how to create a pull request.
|
|
|
|
|
|
|
|
{% endcapture %}
|
|
|
|
|
|
|
|
{% capture prerequisites %}
|
|
|
|
|
|
|
|
1. Create a [GitHub account](https://github.com){: target="_blank"}.
|
|
|
|
|
|
|
|
1. Sign the
|
2016-11-22 13:26:49 +00:00
|
|
|
[Linux Foundation Contributor License Agreement](https://identity.linuxfoundation.org/projects/cncf){: target="_blank"}.
|
2016-10-15 00:45:21 +00:00
|
|
|
|
2016-11-22 13:26:49 +00:00
|
|
|
Documentation will be published under the [CC BY SA 4.0](https://github.com/kubernetes/kubernetes.github.io/blob/master/LICENSE) license.
|
2016-10-15 00:45:21 +00:00
|
|
|
|
|
|
|
{% endcapture %}
|
|
|
|
|
|
|
|
{% capture steps %}
|
|
|
|
|
2017-01-19 22:37:45 +00:00
|
|
|
## Creating a fork of the Kubernetes documentation repository
|
2016-10-15 00:45:21 +00:00
|
|
|
|
|
|
|
1. Go to the
|
|
|
|
[kubernetes/kubernetes.github.io](https://github.com/kubernetes/kubernetes.github.io){: target="_blank"}
|
|
|
|
repository.
|
|
|
|
|
|
|
|
1. In the upper-right corner, click **Fork**. This creates a copy of the
|
|
|
|
Kubernetes documentation repository in your GitHub account. The copy
|
|
|
|
is called a *fork*.
|
|
|
|
|
2017-01-19 22:37:45 +00:00
|
|
|
## Making your changes
|
2016-10-15 00:45:21 +00:00
|
|
|
|
|
|
|
1. In your GitHub account, in your fork of the Kubernetes docs, create
|
|
|
|
a new branch to use for your contribution.
|
|
|
|
|
2017-01-19 22:37:45 +00:00
|
|
|
1. In your new branch, make your changes and commit them. If you want to
|
2016-10-15 00:45:21 +00:00
|
|
|
[write a new topic](/docs/contribute/write-new-topic/),
|
|
|
|
choose the
|
|
|
|
[page type](/docs/contribute/page-templates/)
|
|
|
|
that is the best fit for your content.
|
|
|
|
|
2017-01-19 22:37:45 +00:00
|
|
|
## Submitting a pull request to the master branch (Current Release)
|
2016-10-15 00:45:21 +00:00
|
|
|
|
|
|
|
If you want your change to be published in the released version Kubernetes docs,
|
|
|
|
create a pull request against the master branch of the Kubernetes
|
|
|
|
documentation repository.
|
|
|
|
|
|
|
|
1. In your GitHub account, in your new branch, create a pull request
|
|
|
|
against the master branch of the kubernetes/kubernetes.github.io
|
|
|
|
repository. This opens a page that shows the status of your pull request.
|
|
|
|
|
|
|
|
1. Click **Show all checks**. Wait for the **deploy/netlify** check to complete.
|
|
|
|
To the right of **deploy/netlify**, click **Details**. This opens a staging
|
|
|
|
site where you can verify that your changes have rendered correctly.
|
|
|
|
|
|
|
|
1. During the next few days, check your pull request for reviewer comments.
|
|
|
|
If needed, revise your pull request by committing changes to your
|
|
|
|
new branch in your fork.
|
|
|
|
|
2017-01-19 22:37:45 +00:00
|
|
|
## Submitting a pull request to the <vnext> branch (Upcoming Release)
|
2016-10-15 00:45:21 +00:00
|
|
|
|
|
|
|
If your documentation change should not be released until the next release of
|
|
|
|
the Kubernetes product, create a pull request against the <vnext> branch
|
|
|
|
of the Kubernetes documentation repository. The <vnext> branch has the
|
|
|
|
form `release-<version-number>`, for example release-1.5.
|
|
|
|
|
|
|
|
1. In your GitHub account, in your new branch, create a pull request
|
|
|
|
against the <vnext> branch of the kubernetes/kubernetes.github.io
|
|
|
|
repository. This opens a page that shows the status of your pull request.
|
|
|
|
|
|
|
|
1. Click **Show all checks**. Wait for the **deploy/netlify** check to complete.
|
|
|
|
To the right of **deploy/netlify**, click **Details**. This opens a staging
|
|
|
|
site where you can verify that your changes have rendered correctly.
|
|
|
|
|
|
|
|
1. During the next few days, check your pull request for reviewer comments.
|
|
|
|
If needed, revise your pull request by committing changes to your
|
|
|
|
new branch in your fork.
|
|
|
|
|
2016-11-24 06:14:09 +00:00
|
|
|
The staging site for the upcoming Kubernetes release is here:
|
|
|
|
[http://kubernetes-io-vnext-staging.netlify.com/](http://kubernetes-io-vnext-staging.netlify.com/).
|
|
|
|
The staging site reflects the current state of what's been merged in the
|
|
|
|
release branch, or in other words, what the docs will look like for the
|
|
|
|
next upcoming release. It's automatically updated as new PRs get merged.
|
|
|
|
|
2016-10-15 00:45:21 +00:00
|
|
|
{% endcapture %}
|
|
|
|
|
|
|
|
{% capture whatsnext %}
|
|
|
|
* Learn about [writing a new topic](/docs/contribute/write-new-topic).
|
|
|
|
* Learn about [using page templates](/docs/contribute/page-templates/).
|
|
|
|
* Learn about [staging your changes](/docs/contribute/stage-documentation-changes).
|
|
|
|
{% endcapture %}
|
|
|
|
|
|
|
|
{% include templates/task.md %}
|