docs: improve build step in plugin document (#273)

构建指令不全 https://github.com/halo-dev/plugin-starter 这个链接中的readme指令是全的,有pnpmInstall这个步骤
/kind documentation
```release-note
None
```
wan92hen-patch-1
shangjianan2 2 years ago committed by GitHub
parent 2a38801e80
commit 78a0e1b3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。
## 创建插件项目 ## 创建插件项目
1. 打开 [halo-dev/plugin-starter](https://github.com/halo-dev/plugin-starter)。 1. 打开 [halo-dev/plugin-starter](https://github.com/halo-dev/plugin-starter)。
> 这是一个插件的初始模板,你可以基于它来开发自己的插件。 > 这是一个插件的初始模板,你可以基于它来开发自己的插件。
2. 点击 `Use this template` -> `Create a new repository` 2. 点击 `Use this template` -> `Create a new repository`
@ -25,6 +25,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。
这很简单,首先你需要构建插件:只需要在 `halo-plugin-hello-world` 项目目录下执行 Gradle 命令 这很简单,首先你需要构建插件:只需要在 `halo-plugin-hello-world` 项目目录下执行 Gradle 命令
```shell ```shell
./gradlew pnpmInstall
./gradlew build ./gradlew build
``` ```

@ -8,7 +8,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。
## 创建插件项目 ## 创建插件项目
1. 打开 [halo-dev/plugin-starter](https://github.com/halo-dev/plugin-starter)。 1. 打开 [halo-dev/plugin-starter](https://github.com/halo-dev/plugin-starter)。
> 这是一个插件的初始模板,你可以基于它来开发自己的插件。 > 这是一个插件的初始模板,你可以基于它来开发自己的插件。
2. 点击 `Use this template` -> `Create a new repository` 2. 点击 `Use this template` -> `Create a new repository`
@ -25,6 +25,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。
这很简单,首先你需要构建插件:只需要在 `halo-plugin-hello-world` 项目目录下执行 Gradle 命令 这很简单,首先你需要构建插件:只需要在 `halo-plugin-hello-world` 项目目录下执行 Gradle 命令
```shell ```shell
./gradlew pnpmInstall
./gradlew build ./gradlew build
``` ```

Loading…
Cancel
Save