Skip to content

Latest commit

 

History

History
149 lines (109 loc) · 6.67 KB

update-release-docs.md

File metadata and controls

149 lines (109 loc) · 6.67 KB

WARNING WARNING WARNING WARNING WARNING

PLEASE NOTE: This document applies to the HEAD of the source tree

If you are using a released version of Kubernetes, you should refer to the docs that go with that version.

The latest release of this document can be found [here](http://releases.k8s.io/release-1.2/docs/devel/update-release-docs.md).

Documentation for other releases can be found at releases.k8s.io.

Table of Contents

Overview

This document explains how to update kubernetes release docs hosted at http://kubernetes.io/docs/.

http://kubernetes.io is served using the gh-pages branch of kubernetes repo on github. Updating docs in that branch will update http://kubernetes.io

There are 2 scenarios which require updating docs:

  • Adding a new docs collection for a release.
  • Updating docs in an existing collection.

Adding a new docs collection for a release

Whenever a new release series (release-X.Y) is cut from master, we push the corresponding set of docs to http://kubernetes.io/vX.Y/docs. The steps are as follows:

Once these changes have been submitted, you should be able to reach the docs at http://kubernetes.io/vX.Y/docs/ where you can test them.

To make X.Y the default version of docs:

http://kubernetes.io/docs/ should now be redirecting to http://kubernetes.io/vX.Y/.

Updating docs in an existing collection

The high level steps to update docs in an existing collection are:

  1. Update docs on HEAD (master branch)
  2. Cherryick the change in relevant release branch.
  3. Update docs on gh-pages.

Updating docs on HEAD

Development guide provides general instructions on how to contribute to kubernetes github repo. Docs how to guide provides conventions to follow while writing docs.

Updating docs in release branch

Once docs have been updated in the master branch, the changes need to be cherrypicked in the latest release branch. Cherrypick guide has more details on how to cherrypick your change.

Updating docs in gh-pages branch

Once release branch has all the relevant changes, we can pull in the latest docs in gh-pages branch. Run the following 2 commands in gh-pages branch to update docs for release X.Y:

_tools/import_docs vX.Y _vX.Y release-X.Y release-X.Y

For ex: to pull in docs for release 1.1, run:

_tools/import_docs v1.1 _v1.1 release-1.1 release-1.1

Apart from copying over the docs, _tools/release_docs also does some post processing (like updating the links to docs to point to http://kubernetes.io/docs/ instead of pointing to github repo). Note that we always pull in the docs from release branch and not from master (pulling docs from master requires some extra processing like versionizing the links and removing unversioned warnings).

We delete all existing docs before pulling in new ones to ensure that deleted docs go away.

If the change added or deleted a doc, then update the corresponding _includes/nav_vX.Y.html file as well.

Analytics