From 78a0e1b3f1f9cacc72991af8062b68548600d555 Mon Sep 17 00:00:00 2001 From: shangjianan2 <1978707987@qq.com> Date: Mon, 30 Oct 2023 18:36:55 +0800 Subject: [PATCH] docs: improve build step in plugin document (#273) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建指令不全 https://github.com/halo-dev/plugin-starter 这个链接中的readme指令是全的,有pnpmInstall这个步骤 /kind documentation ```release-note None ``` --- docs/developer-guide/plugin/hello-world.md | 3 ++- .../version-2.10/developer-guide/plugin/hello-world.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/plugin/hello-world.md b/docs/developer-guide/plugin/hello-world.md index 496a909..bef78cb 100644 --- a/docs/developer-guide/plugin/hello-world.md +++ b/docs/developer-guide/plugin/hello-world.md @@ -8,7 +8,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。 ## 创建插件项目 1. 打开 [halo-dev/plugin-starter](https://github.com/halo-dev/plugin-starter)。 - + > 这是一个插件的初始模板,你可以基于它来开发自己的插件。 2. 点击 `Use this template` -> `Create a new repository`。 @@ -25,6 +25,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。 这很简单,首先你需要构建插件:只需要在 `halo-plugin-hello-world` 项目目录下执行 Gradle 命令 ```shell +./gradlew pnpmInstall ./gradlew build ``` diff --git a/versioned_docs/version-2.10/developer-guide/plugin/hello-world.md b/versioned_docs/version-2.10/developer-guide/plugin/hello-world.md index 496a909..bef78cb 100644 --- a/versioned_docs/version-2.10/developer-guide/plugin/hello-world.md +++ b/versioned_docs/version-2.10/developer-guide/plugin/hello-world.md @@ -8,7 +8,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。 ## 创建插件项目 1. 打开 [halo-dev/plugin-starter](https://github.com/halo-dev/plugin-starter)。 - + > 这是一个插件的初始模板,你可以基于它来开发自己的插件。 2. 点击 `Use this template` -> `Create a new repository`。 @@ -25,6 +25,7 @@ description: 了解如何构建你的第一个插件并在 Halo 中使用它。 这很简单,首先你需要构建插件:只需要在 `halo-plugin-hello-world` 项目目录下执行 Gradle 命令 ```shell +./gradlew pnpmInstall ./gradlew build ```