From c891124c6fee4dc3a6966b80e8bc2ac75d978c5e Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 16 Apr 2024 17:46:07 +0800 Subject: [PATCH] chore: update plugin.yaml fields (#29) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 适配 https://github.com/halo-dev/halo/pull/4061 的改动。 更新 plugin.yaml 示例,添加 repo 字段。之后,homepage 和 repo 的区别如下: 1. homepage 可用于提供插件官网或者介绍页面,比如 Halo 应用市场的应用页面。 2. repo 仅作为源码仓库地址。 ```release-note None ``` --- src/main/resources/plugin.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index 3326a11..1e52eb1 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -1,7 +1,9 @@ +# Refer https://docs.halo.run/developer-guide/plugin/basics/manifest + apiVersion: plugin.halo.run/v1alpha1 kind: Plugin metadata: - # The name defines how the plugin is invoked,A unique name + # The name defines how the plugin is invoked, A unique name name: starter spec: enabled: true @@ -10,9 +12,8 @@ spec: name: Halo website: https://github.com/halo-dev logo: logo.png - # 'homepage' usually links to the GitHub repository of the plugin - homepage: https://github.com/halo-dev/plugin-starter - # 'displayName' explains what the plugin does in only a few words + homepage: https://github.com/halo-dev/plugin-starter#readme + repo: https://github.com/halo-dev/plugin-starter displayName: "插件快速开始模板" description: "这是一个插件快速开始模板" license: