Skip to content

Commit

Permalink
chore: update plugin.yaml fields (#29)
Browse files Browse the repository at this point in the history
适配 halo-dev/halo#4061 的改动。

更新 plugin.yaml 示例,添加 repo 字段。之后,homepage 和 repo 的区别如下:

1. homepage 可用于提供插件官网或者介绍页面,比如 Halo 应用市场的应用页面。
2. repo 仅作为源码仓库地址。

```release-note
None
```
  • Loading branch information
ruibaby authored Apr 16, 2024
1 parent 9f04f1b commit c891124
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit c891124

Please sign in to comment.