Skip to content

Commit

Permalink
🎨 Add plugin config items backends and frontends siyuan-note/siyu…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed May 29, 2023
1 parent 27956f1 commit c2e15eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ conveniently.
"url": "https://github.com/siyuan-note/plugin-sample",
"version": "0.0.1",
"minAppVersion": "2.9.0",
"backends": ["all"],
"frontends": ["all"],
"displayName": {
"default": "Plugin Sample",
"zh_CN": "插件示例"
Expand Down Expand Up @@ -76,6 +78,8 @@ conveniently.
* `url`: Plugin repo URL
* `version`: Plugin version number, it is recommended to follow the [semver](https://semver.org/) specification
* `minAppVersion`: Minimum version number of SiYuan required to use this plugin
* `backends`: Backend environment required by the plugin, optional values are `all`, `windows`, `linux`, `darwin`, `android` and `ios`
* `frontends`: Frontend environment required by the plugin, optional values are `all`, `desktop`, `desktop-window`, `mobile`, `browser-desktop`, `browser-mobile`
* `displayName`: Template display name, mainly used for display in the marketplace list, supports multiple languages
* `default`: Default language, must exist
* `zh_CN`, `en_US` and other languages: optional, it is recommended to provide at least Chinese and English
Expand Down
4 changes: 4 additions & 0 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"url": "https://github.com/siyuan-note/plugin-sample",
"version": "0.0.1",
"minAppVersion": "2.9.0",
"backends": ["all"],
"frontends": ["all"],
"displayName": {
"default": "Plugin Sample",
"zh_CN": "插件示例"
Expand Down Expand Up @@ -70,6 +72,8 @@
* `url`:插件仓库地址
* `version`:插件版本号,建议遵循 [semver](https://semver.org/lang/zh-CN/) 规范
* `minAppVersion`:插件支持的最低思源笔记版本号
* `backends`:插件需要的后端环境,可选值为 `all`, `windows`, `linux`, `darwin`, `docker`, `android` and `ios`
* `frontends`:插件需要的前端环境,可选值为 `all`, `desktop`, `desktop-window`, `mobile`, `browser-desktop`, `browser-mobile`
* `displayName`:模板显示名称,主要用于模板集市列表中显示,支持多语言
* `default`:默认语言,必须存在
* `zh_CN``en_US` 等其他语言:可选,建议至少提供中文和英文
Expand Down
4 changes: 3 additions & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "plugin-sample",
"author": "Vanessa",
"url": "https://github.com/siyuan-note/plugin-sample",
"version": "0.0.6",
"version": "0.0.7",
"minAppVersion": "2.9.0",
"backends": ["all"],
"frontends": ["all"],
"displayName": {
"default": "Plugin Sample",
"zh_CN": "插件示例"
Expand Down

0 comments on commit c2e15eb

Please sign in to comment.