Skip to content

Commit 1739ac9

Browse files
committed
update open-new-pr, docsy info
1 parent f0cacec commit 1739ac9

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

content/en/docs/contribute/new-content/open-a-pr.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ Make sure you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installi
9797

9898
### Create a local clone and set the upstream
9999

100-
3. In a terminal window, clone your fork:
100+
3. In a terminal window, clone your fork and update the [Docsy Hugo theme](https://github.com/google/docsy#readme):
101101

102102
```bash
103103
git clone [email protected]/<github_username>/website
104+
cd website
105+
git submodule update --init --recursive --depth 1
104106
```
105107

106108
4. Navigate to the new `website` directory. Set the `kubernetes/website` repository as the `upstream` remote:
@@ -261,18 +263,26 @@ The commands below use Docker as default container engine. Set the `CONTAINER_EN
261263

262264
Alternately, install and use the `hugo` command on your computer:
263265

264-
5. Install the [Hugo](https://gohugo.io/getting-started/installing/) version specified in [`website/netlify.toml`](https://raw.githubusercontent.com/kubernetes/website/master/netlify.toml).
266+
1. Install the [Hugo](https://gohugo.io/getting-started/installing/) version specified in [`website/netlify.toml`](https://raw.githubusercontent.com/kubernetes/website/master/netlify.toml).
265267

266-
6. In a terminal, go to your Kubernetes website repository and start the Hugo server:
268+
2. If you have not updated your website repository, the `website/themes/docsy` directory is empty.
269+
The site cannot build without a local copy of the theme. To update the website theme, run:
270+
271+
```bash
272+
git submodule update --init --recursive --depth 1
273+
```
274+
275+
3. In a terminal, go to your Kubernetes website repository and start the Hugo server:
267276

268277
```bash
269278
cd <path_to_your_repo>/website
270-
hugo server
279+
hugo server --buildFuture
271280
```
272281

273-
7. In your browser’s address bar, enter `https://localhost:1313`.
282+
4. In a web browser, navigate to `https://localhost:1313`. Hugo watches the
283+
changes and rebuilds the site as needed.
274284

275-
8. To stop the local Hugo instance, go back to the terminal and type `Ctrl+C`,
285+
5. To stop the local Hugo instance, go back to the terminal and type `Ctrl+C`,
276286
or close the terminal window.
277287

278288
{{% /tab %}}

0 commit comments

Comments
 (0)