@@ -43,10 +43,10 @@ Halo 2.0 插件开发快速开始模板(WIP)
4343 ├── java
4444 │ └── run
4545 │ └── halo
46- │ └── template
46+ │ └── starter
4747 │ ├── Apple.java
4848 │ ├── ApplesController.java
49- │ └── TemplatePlugin .java # Main Class
49+ │ └── StarterPlugin .java # Main Class
5050 └── resources
5151 ├── console
5252 │ ├── main.js # Console Frontend Entry file(production build)
@@ -105,7 +105,7 @@ Halo 2.0 插件开发快速开始模板(WIP)
105105 方法中注册自定义模型,这一步必不可少,所有定义的自定义模型都需要在此注册,并在 ` stop() ` 生命周期方法中清理资源。
106106
107107 ``` java
108- public class TemplatePlugin extends BasePlugin {
108+ public class StarterPlugin extends BasePlugin {
109109 // ...
110110
111111 @Override
@@ -293,7 +293,7 @@ git clone https://github.com/halo-dev/console --branch main
293293``` bash
294294cd ./dev-plugins
295295
296- git clone https://github.com/halo-sigs /plugin-template
296+ git clone https://github.com/halo-dev /plugin-starter
297297```
298298
299299### Halo 配置文件修改
@@ -319,15 +319,15 @@ halo:
319319 lib-directories :
320320 - " libs"
321321 fixedPluginPath :
322- - " /Users/ryanwang/Workspace/github/ruibaby/halo-dev/dev-plugins/ plugin-template "
322+ - " /path/to/ plugin-starter "
323323` ` `
324324
325325### 编译插件
326326
327327下载前端依赖:
328328
329329` ` ` bash
330- cd ./halo-dev/dev-plugins/plugin-template
330+ cd ./halo-dev/dev-plugins/plugin-starter
331331
332332./gradlew.bat pnpmInstall
333333
@@ -390,4 +390,4 @@ Halo。但修改配置文件后需要 build 插件以及重启 Halo。
390390./gradlew -x build
391391```
392392
393- 然后只需复制例如` build/libs/plugin-template -0.0.1-SNAPSHOT-plain.jar ` 的 ` jar ` 包即可使用。
393+ 然后只需复制例如` build/libs/plugin-starter -0.0.1-SNAPSHOT-plain.jar ` 的 ` jar ` 包即可使用。
0 commit comments