Skip to content

Commit c891124

Browse files
authored
chore: update plugin.yaml fields (#29)
适配 halo-dev/halo#4061 的改动。 更新 plugin.yaml 示例,添加 repo 字段。之后,homepage 和 repo 的区别如下: 1. homepage 可用于提供插件官网或者介绍页面,比如 Halo 应用市场的应用页面。 2. repo 仅作为源码仓库地址。 ```release-note None ```
1 parent 9f04f1b commit c891124

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/resources/plugin.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# Refer https://docs.halo.run/developer-guide/plugin/basics/manifest
2+
13
apiVersion: plugin.halo.run/v1alpha1
24
kind: Plugin
35
metadata:
4-
# The name defines how the plugin is invoked,A unique name
6+
# The name defines how the plugin is invoked, A unique name
57
name: starter
68
spec:
79
enabled: true
@@ -10,9 +12,8 @@ spec:
1012
name: Halo
1113
website: https://github.com/halo-dev
1214
logo: logo.png
13-
# 'homepage' usually links to the GitHub repository of the plugin
14-
homepage: https://github.com/halo-dev/plugin-starter
15-
# 'displayName' explains what the plugin does in only a few words
15+
homepage: https://github.com/halo-dev/plugin-starter#readme
16+
repo: https://github.com/halo-dev/plugin-starter
1617
displayName: "插件快速开始模板"
1718
description: "这是一个插件快速开始模板"
1819
license:

0 commit comments

Comments
 (0)