diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 630aacb39..705011b6f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -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" }, diff --git a/docs/assets/image/zh/plugin/dev/dist/github_release.png b/docs/assets/image/zh/plugin/dev/dist/github_release.png new file mode 100644 index 000000000..d9d23e157 Binary files /dev/null and b/docs/assets/image/zh/plugin/dev/dist/github_release.png differ diff --git a/docs/en/plugin/dev/dist/github.md b/docs/en/plugin/dev/dist/github.md new file mode 100644 index 000000000..fcfe58d49 --- /dev/null +++ b/docs/en/plugin/dev/dist/github.md @@ -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. + + + +## Install Plugin + +In LangBot's plugin management page, click the top-right corner to select the GitHub installation method. diff --git a/docs/en/plugin/dev/publish.md b/docs/en/plugin/dev/dist/market.md similarity index 98% rename from docs/en/plugin/dev/publish.md rename to docs/en/plugin/dev/dist/market.md index 72cdc1477..43c5682f4 100644 --- a/docs/en/plugin/dev/publish.md +++ b/docs/en/plugin/dev/dist/market.md @@ -1,4 +1,4 @@ -# Publish Plugin +# Publish to Plugin Marketplace Publish plugins to [LangBot Plugin Marketplace](https://space.langbot.app/market) via CLI. diff --git a/docs/zh/deploy/mcp/readme.md b/docs/zh/deploy/mcp/readme.md index f3952943d..2dcebac52 100644 --- a/docs/zh/deploy/mcp/readme.md +++ b/docs/zh/deploy/mcp/readme.md @@ -35,15 +35,3 @@ LangBot 支持 SSE 模式 MCP 服务器,您可以添加 MCP 服务器,使用 需要在流水线设置中选用 `内置 Agent` 作为运行器,并使用支持函数调用的模型。 dialog with mcp - - - - - - - - - - - - diff --git a/docs/zh/plugin/dev/dist/github.md b/docs/zh/plugin/dev/dist/github.md new file mode 100644 index 000000000..f68ade06f --- /dev/null +++ b/docs/zh/plugin/dev/dist/github.md @@ -0,0 +1,23 @@ +# 通过 GitHub 分发插件 + +您可以将您的插件上传至 GitHub ,为仓库创建 Release 并上传 `.lbpkg` 文件,其他用户即可在 LangBot 上安装。 + +## 打包插件 + +在插件目录下执行命令: + +```bash +lbp build +``` + +这将生成一个 `.lbpkg` 文件在`dist`目录。 + +## 创建 Release + +请将该插件上传 GitHub,并前往插件仓库的 Release 页面,点击创建 Release,并上传刚刚打包的`.lbpkg`文件。 + + + +## 安装插件 + +请在 LangBot 的插件管理页面,点击右上角即可选择 GitHub 安装方式。 \ No newline at end of file diff --git a/docs/zh/plugin/dev/publish.md b/docs/zh/plugin/dev/dist/market.md similarity index 98% rename from docs/zh/plugin/dev/publish.md rename to docs/zh/plugin/dev/dist/market.md index 7ce2842b0..0f6624bc8 100644 --- a/docs/zh/plugin/dev/publish.md +++ b/docs/zh/plugin/dev/dist/market.md @@ -1,4 +1,4 @@ -# 发布插件 +# 发布插件到插件市场 通过 CLI 将插件发布至 [LangBot 插件市场](https://space.langbot.app/market)。