Skip to content

Commit 5128cc4

Browse files
committed
chore: change github org to halo-dev
1 parent c6d1006 commit 5128cc4

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
294294
cd ./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` 包即可使用。

src/main/resources/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
settingName: starter-settings
1414
configMapName: starter-settings
1515
# 'homepage' usually links to the GitHub repository of the plugin
16-
homepage: https://github.com/halo-sigs/plugin-starter
16+
homepage: https://github.com/halo-dev/plugin-starter
1717
# 'displayName' explains what the plugin does in only a few words
1818
displayName: "插件快速开始模板"
1919
description: "这是一个插件快速开始模板"

0 commit comments

Comments
 (0)