在 WORKSPACE/data/plugins/siyuan-plugin-example 中创建五个文件: plugin.json, icon.png,preview.png, index.js, README.MD,并在下面的内容填写到对应的文件里。
json
// plugin.json
{
"name": "siyuan-plugin-example",
"version": "v0.1.0",
"author": "example",
"url": "https://github.com/example/siyuan-plugin/example",
"displayName": {
"default": "example",
"zh_CN": "example"
},
"description": {
"default": "example",
"zh_CN": "example"
},
"readme": {
"default": "README.md"
}
}