diff --git a/docs/.vuepress/components/PluginList.vue b/docs/.vuepress/components/PluginList.vue new file mode 100644 index 00000000..127d5997 --- /dev/null +++ b/docs/.vuepress/components/PluginList.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/docs/.vuepress/components/plugin_list.js b/docs/.vuepress/components/plugin_list.js new file mode 100644 index 00000000..46c9d53d --- /dev/null +++ b/docs/.vuepress/components/plugin_list.js @@ -0,0 +1,14 @@ +module.exports = [ + { + name: 'baidu-translate', + description: '翻译插件(百度)', + avatar: null, + link: 'https://github.com/zhamao-robot/baidu-translate-plugin' + }, + { + name: 'go-cqhttp-adapter-plugin', + description: '框架接入 gocq 的适配器(将 OneBot 11 转为 12)', + avatar: 'https://user-images.githubusercontent.com/25968335/120111974-8abef880-c139-11eb-99cd-fa928348b198.png', + link: 'https://github.com/zhamao-robot/go-cqhttp-adapter-plugin' + } +]; diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index d0bdabe4..ea7f4bc0 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -19,6 +19,7 @@ module.exports = { ], themeConfig: { repo: 'zhamao-robot/zhamao-framework', + docsBranch: 'main', logo: '/logo_trans.png', docsDir: 'docs', editLinks: true, diff --git a/docs/README.md b/docs/README.md index 27ea2882..fe0c5477 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6,8 +6,8 @@ actions: link: /guide/ type: primary size: large - - text: 快速上手(v2 旧版) - link: https://docs-v2.zhamao.xin/ + - text: 插件市场 + link: /plugin-market/ type: primary ghost: true size: large diff --git a/docs/plugin-market/README.md b/docs/plugin-market/README.md new file mode 100644 index 00000000..534dff1c --- /dev/null +++ b/docs/plugin-market/README.md @@ -0,0 +1,13 @@ +# 插件市场 + +这里列出了框架的部分插件。 + +::: tip 提示 + +这里也可以分享你的插件,点击 [这里](https://github.com/zhamao-robot/zhamao-framework/edit/main/docs/.vuepress/plugin_list.js),提交 PR 即可添加! + +如果对这里的插件有疑问,请到插件对应的 GitHub 仓库发起 Issue 提问。 + +::: + +