📝 doc: introduce to siyuan-plugin-cli
This commit is contained in:
parent
63ee8d92dc
commit
19cae2eabd
2 changed files with 15 additions and 0 deletions
|
@ -18,6 +18,14 @@
|
||||||
4. Provides a github action template to automatically generate package.zip and upload to new release
|
4. Provides a github action template to automatically generate package.zip and upload to new release
|
||||||
|
|
||||||
|
|
||||||
|
> ![TIP]
|
||||||
|
> You can also use our maintained [siyuan-plugin-cli](https://www.npmjs.com/package/siyuan-plugin-cli) command-line tool to directly build plugins in your local terminal.
|
||||||
|
>
|
||||||
|
> Additionally, for the `make-link` related commands mentioned in this plugin, all future updates will be made in [siyuan-plugin-cli](https://www.npmjs.com/package/siyuan-plugin-cli).
|
||||||
|
>
|
||||||
|
> The built-in `make-link` scripts may also be removed in a future version, in favor of using the `siyuan-plugin-cli` tool, aiming to simplify the workload of maintaining multiple plugin templates.
|
||||||
|
|
||||||
|
|
||||||
## Get started
|
## Get started
|
||||||
|
|
||||||
1. Use the <kbd>Use this template</kbd> button to make a copy of this repo as a template. Note that the repository name should match the plugin name, and the default branch must be `main`.
|
1. Use the <kbd>Use this template</kbd> button to make a copy of this repo as a template. Note that the repository name should match the plugin name, and the default branch must be `main`.
|
||||||
|
|
|
@ -26,6 +26,13 @@
|
||||||
5. 执行 `pnpm run dev` 进行实时编译
|
5. 执行 `pnpm run dev` 进行实时编译
|
||||||
6. 在思源中打开集市并在下载选项卡中启用插件
|
6. 在思源中打开集市并在下载选项卡中启用插件
|
||||||
|
|
||||||
|
> ![TIP]
|
||||||
|
> 你也可以使用我们维护的 [siyuan-plugin-cli](https://www.npmjs.com/package/siyuan-plugin-cli) 命令行工具,在本地终端中直接构建插件。
|
||||||
|
>
|
||||||
|
> 此外,对于本插件以下提及到的 `make-link` 相关的命令,后续所有更新将在 [siyuan-plugin-cli](https://www.npmjs.com/package/siyuan-plugin-cli) 中进行。
|
||||||
|
>
|
||||||
|
> 模板内置的 `make-link` 脚本也可能会在未来某个版本中移除,转而使用 `siyuan-plugin-cli` 工具,意在简化同时维护多个插件模板的工作量。
|
||||||
|
|
||||||
### 设置 make-link 命令的目标目录
|
### 设置 make-link 命令的目标目录
|
||||||
|
|
||||||
make-link 命令会创建符号链接将你的 `dev` 目录绑定到思源的插件目录下。你可以有三种方式来配置目标的思源工作空间并创建符号链接:
|
make-link 命令会创建符号链接将你的 `dev` 目录绑定到思源的插件目录下。你可以有三种方式来配置目标的思源工作空间并创建符号链接:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue