doc: add docs for distribute plugin via github

This commit is contained in:
Junyan Qin
2025-11-04 22:42:03 +08:00
parent e37ab48921
commit 6c043e12c1
7 changed files with 60 additions and 16 deletions
+12 -2
View File
@@ -202,7 +202,12 @@ export default defineConfig({
],
},
{ text: "迁移指南", link: "/zh/plugin/dev/migration" },
{ text: "发布插件", link: "/zh/plugin/dev/publish" },
{ text: "分发插件", collapsed: true,
items: [
{ text: "发布到插件市场", link: "/zh/plugin/dev/dist/market" },
{ text: "通过 GitHub 分发", link: "/zh/plugin/dev/dist/github" },
]
},
],
},
{ text: "系统兼容性", link: "/zh/plugin/compatibility" },
@@ -454,7 +459,12 @@ export default defineConfig({
],
},
{ text: "Migration Guide", link: "/en/plugin/dev/migration" },
{ text: "Publish Plugin", link: "/en/plugin/dev/publish" },
{ text: "Distribute Plugin", collapsed: true,
items: [
{ text: "Publish to Marketplace", link: "/en/plugin/dev/dist/market" },
{ text: "Distribute via GitHub", link: "/en/plugin/dev/dist/github" },
]
},
],
},
{ text: "System Compatibility", link: "/en/plugin/compatibility" },
Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

+23
View File
@@ -0,0 +1,23 @@
# Distribute Plugins via GitHub
You can upload your plugin to GitHub, create a Release for the repository, and upload the `.lbpkg` file, allowing other users to install it in LangBot.
## Build Plugin
Execute the following command in the plugin directory:
```bash
lbp build
```
This will generate a `.lbpkg` file in the `dist` directory.
## Create Release
Upload your plugin to GitHub, then go to the Release page of your plugin repository, click to create a Release, and upload the `.lbpkg` file you just built.
<img width="600" src="/assets/image/zh/plugin/dev/dist/github_release.png" />
## Install Plugin
In LangBot's plugin management page, click the top-right corner to select the GitHub installation method.
@@ -1,4 +1,4 @@
# Publish Plugin
# Publish to Plugin Marketplace
Publish plugins to [LangBot Plugin Marketplace](https://space.langbot.app/market) via CLI.
-12
View File
@@ -35,15 +35,3 @@ LangBot 支持 SSE 模式 MCP 服务器,您可以添加 MCP 服务器,使用
需要在流水线设置中选用 `内置 Agent` 作为运行器,并使用支持函数调用的模型。
<img width="1000px" src="/assets/image/zh/deploy/mcp/mcp04.png" alt="dialog with mcp" />
+23
View File
@@ -0,0 +1,23 @@
# 通过 GitHub 分发插件
您可以将您的插件上传至 GitHub ,为仓库创建 Release 并上传 `.lbpkg` 文件,其他用户即可在 LangBot 上安装。
## 打包插件
在插件目录下执行命令:
```bash
lbp build
```
这将生成一个 `.lbpkg` 文件在`dist`目录。
## 创建 Release
请将该插件上传 GitHub,并前往插件仓库的 Release 页面,点击创建 Release,并上传刚刚打包的`.lbpkg`文件。
<img width="600" src="/assets/image/zh/plugin/dev/dist/github_release.png" />
## 安装插件
请在 LangBot 的插件管理页面,点击右上角即可选择 GitHub 安装方式。
@@ -1,4 +1,4 @@
# 发布插件
# 发布插件到插件市场
通过 CLI 将插件发布至 [LangBot 插件市场](https://space.langbot.app/market)。