You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/contribute/new-content/open-a-pr.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,21 +217,37 @@ When you are ready to submit a pull request, commit your changes.
217
217
218
218
It's a good idea to preview your changes locally before pushing them or opening a pull request. A preview lets you catch build errors or markdown formatting problems.
219
219
220
-
You can either build the website's docker image or run Hugo locally. Building the docker image is slower but displays [Hugo shortcodes](/docs/contribute/style/hugo-shortcodes/), which can be useful for debugging.
220
+
You can either build the website's container image or run Hugo locally. Building the container image is slower but displays [Hugo shortcodes](/docs/contribute/style/hugo-shortcodes/), which can be useful for debugging.
221
221
222
222
{{< tabs name="tab_with_hugo">}}
223
223
{{% tab name="Hugo in a container" %}}
224
224
225
+
{{< note >}}
226
+
The commands below use Docker as default container engine. Set the `CONTAINER_ENGINE` environment variable to override this behaviour.
227
+
{{< /note >}}
228
+
225
229
1. Build the image locally:
226
230
227
231
```bash
228
-
make docker-image
232
+
# Use docker (default)
233
+
make container-image
234
+
235
+
### OR ###
236
+
237
+
# Use podman
238
+
CONTAINER_ENGINE=podman make container-image
229
239
```
230
240
231
241
2. After building the `kubernetes-hugo` image locally, build and serve the site:
232
242
233
243
```bash
234
-
make docker-serve
244
+
# Use docker (default)
245
+
make container-serve
246
+
247
+
### OR ###
248
+
249
+
# Use podman
250
+
CONTAINER_ENGINE=podman make container-serve
235
251
```
236
252
237
253
3. In a web browser, navigate to `https://localhost:1313`. Hugo watches the
0 commit comments