mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 02:37:36 +00:00
Add a gendocs pre-submit hook.
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user