Skip to content

Commit

Permalink
suggesting the path that works more reliably first (#10954)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Heck <heckj@mac.com>
  • Loading branch information
heckj authored and k8s-ci-robot committed Dec 11, 2018
1 parent bcbf0c9 commit 938881e
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions content/en/docs/contribute/intermediate.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,38 +487,42 @@ Slack channel or the
### View your changes locally
If you aren't ready to create a pull request but you want to see what your
changes look like, you can use the `hugo` command to stage the changes locally.
changes look like, you can build and run a docker image to generate all the documentation and
serve it locally.
1. Install Hugo version {{< hugoVersion >}} or later.
1. Build the image locally:
2. In a terminal, go to the root directory of your clone of the Kubernetes
docs, and enter this command:
```bash
make docker-image
```
2. Once the `kubernetes-hugo` image has been built locally, you can build and serve the site:
```bash
hugo server
make docker-serve
```
3. In your browser’s address bar, enter `localhost:1313`.
3. In your browser's address bar, enter `localhost:1313`. Hugo will watch the
filesystem for changes and rebuild the site as needed.
4. To stop the local Hugo instance, go back to the terminal and type `Ctrl+C`
or just close the terminal window.
Alternatively, you can build the Kubernetes docs using Docker.
Alternatively, you can install and use the `hugo` command on your development machine:
1. Build the image locally:
1. [Install Hugo](https://gohugo.io/getting-started/installing/) version {{< hugoVersion >}} or later.
```bash
make docker-image
```
2. Once the `kubernetes-hugo` image has been built locally, you can build and serve the site:
2. In a terminal, go to the root directory of your clone of the Kubernetes
docs, and enter this command:
```bash
make docker-serve
hugo server
```
3. In your browser's address bar, enter `localhost:1313`. Hugo will watch the
filesystem for changes and rebuild the site as needed.
3. In your browser’s address bar, enter `localhost:1313`.
4. To stop the local Hugo instance, go back to the terminal and type `Ctrl+C`
or just close the terminal window.
## Triage and categorize issues
Expand Down

0 comments on commit 938881e

Please sign in to comment.