Add a gendocs pre-submit hook.

This commit is contained in:
Brendan Burns
2015-01-14 21:27:13 -08:00
parent 88c68e0349
commit 718a563b1f
3 changed files with 105 additions and 9 deletions

View File

@@ -238,16 +238,9 @@ git fetch upstream
git rebase upstream/master
```
## Regenerating the API documentation
## Regenerating the CLI documentation
```
cd kubernetes/api
sudo docker build -t kubernetes/raml2html .
sudo docker run --name="docgen" kubernetes/raml2html
sudo docker cp docgen:/data/kubernetes.html .
hack/run-gendocs.sh
```
View the API documentation using htmlpreview (works on your fork, too):
```
http://htmlpreview.github.io/?https://github.com/GoogleCloudPlatform/kubernetes/blob/master/api/kubernetes.html
```