@@ -278,7 +278,6 @@ Figure 2. Working from a local fork to make your changes.
278
278
``` shell
279
279
git clone
[email protected] :
< github_username
> /website
280
280
cd website
281
- git submodule update --init --recursive --depth 1
282
281
```
283
282
284
283
<!--
@@ -557,21 +556,19 @@ Alternately, install and use the `hugo` command on your computer:
557
556
另一种方式是,在你的本地计算机上安装并使用 ` hugo ` 命令:
558
557
559
558
<!--
560
- 1. Install the [Hugo](https://gohugo.io/getting-started/installing/) version specified in
559
+ 1. Install the [Hugo (Extended edition) ](https://gohugo.io/getting-started/installing/) and [Node](https://nodejs.org/en ) version specified in
561
560
[`website/netlify.toml`](https://raw.githubusercontent.com/kubernetes/website/main/netlify.toml).
562
561
563
- 1. If you have not updated your website repository, the `website/themes/docsy` directory is empty.
564
- The site cannot build without a local copy of the theme. To update the website theme, run:
562
+ 1. Install any dependencies:
565
563
-->
566
564
1 . 安装 [ ` website/netlify.toml ` ] ( https://raw.githubusercontent.com/kubernetes/website/main/netlify.toml )
567
- 文件中指定的 [ Hugo] ( https://gohugo.io/getting-started/installing/ ) 版本。
565
+ 文件中指定的 [ Hugo(扩展版)] ( https://gohugo.io/getting-started/installing/ )
566
+ 和 [ Node] ( https://nodejs.org/zh-cn ) 版本。
568
567
569
- 2 . 如果你尚未更新你的网站仓库,则 ` website/themes/docsy ` 目录是空的。
570
- 如果本地缺少主题的副本,则该站点无法构建。
571
- 要更新网站主题,运行以下命令:
568
+ 2 . 安装所有依赖项:
572
569
573
570
``` shell
574
- git submodule update --init --recursive --depth 1
571
+ npm ci
575
572
```
576
573
577
574
<!--
@@ -581,6 +578,15 @@ Alternately, install and use the `hugo` command on your computer:
581
578
582
579
``` shell
583
580
cd < path_to_your_repo> /website
581
+ make server
582
+ ```
583
+
584
+ <!--
585
+ If you're on a Windows machine or unable to run the `make` command, use the following command:
586
+ -->
587
+ 如果你使用的是 Windows 机器或无法运行 ` make ` 命令,请使用以下命令:
588
+
589
+ ```
584
590
hugo server --buildFuture
585
591
```
586
592
0 commit comments