Add a gendocs pre-submit hook.

This commit is contained in:
Brendan Burns 2015-01-14 21:27:13 -08:00
parent 43612a093e
commit ce93f70278
1 changed files with 2 additions and 9 deletions

View File

@ -238,16 +238,9 @@ git fetch upstream
git rebase upstream/master git rebase upstream/master
``` ```
## Regenerating the API documentation ## Regenerating the CLI documentation
``` ```
cd kubernetes/api hack/run-gendocs.sh
sudo docker build -t kubernetes/raml2html .
sudo docker run --name="docgen" kubernetes/raml2html
sudo docker cp docgen:/data/kubernetes.html .
``` ```
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
```