diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index 47d21ab9..8e718bcc 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -21,7 +21,10 @@ jobs: uses: nonebot/nonebot2-publish-bot@main with: token: ${{ secrets.GH_TOKEN }} - base: master - plugin_path: website/static/plugins.json - bot_path: website/static/bots.json - adapter_path: website/static/adapters.json + config: > + { + "base": "master", + "plugin_path": "website/static/plugins.json", + "bot_path": "website/static/bots.json", + "adapter_path": "website/static/adapters.json" + } diff --git a/README.md b/README.md index c101ed5e..83fb2806 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,8 @@ NoneBot2 不是 NoneBot1 的替代品。事实上,它们都在被积极的维 懒得看文档?下面是快速安装指南: -1. (可选)使用你喜欢的 Python 环境管理工具创建新的虚拟环境。 +1. (**强烈建议**)使用你喜欢的 Python 环境管理工具创建新的虚拟环境。 + 2. 使用 `pip` (或其他) 安装 NoneBot 脚手架。 ```bash @@ -153,7 +154,14 @@ NoneBot2 不是 NoneBot1 的替代品。事实上,它们都在被积极的维 ## 许可证 -`NoneBot` 采用 `MIT` 协议开源,协议文件参考 [LICENSE](./LICENSE)。 +`NoneBot` 采用 `MIT` 许可证进行开源 + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## 贡献 @@ -161,7 +169,11 @@ NoneBot2 不是 NoneBot1 的替代品。事实上,它们都在被积极的维 如果你要提交 Pull Request,请确保你的代码风格和项目已有的代码保持一致,遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008/) 与 [PEP 484](https://www.python.org/dev/peps/pep-0484/),变量命名清晰,有适当的注释与测试代码,**并且请以 `dev` 分支作为 Pull Request 目标分支**。 -感谢以下开发者对 NoneBot2 的贡献: + + +### 鸣谢 + +感谢以下开发者对 NoneBot2 作出的贡献: diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index e9babca0..2d09fea6 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -22,6 +22,8 @@ const config = { "zh-Hans": { label: "简体中文" }, }, }, + + scripts: ["/unregister-sw.js"], presets: [ [ @@ -149,7 +151,8 @@ const config = { darkTheme: darkCodeTheme, }, algolia: { - apiKey: "ef449608d0ad6e81b9efd05db6367040", + appId: "X0X5UACHZQ", + apiKey: "ac03e1ac2bd0812e2ea38c0cc1ea38c5", indexName: "nonebot", contextualSearch: true, // searchParameters: { diff --git a/website/static/plugins.json b/website/static/plugins.json index c01c8667..2e454dc9 100644 --- a/website/static/plugins.json +++ b/website/static/plugins.json @@ -792,5 +792,50 @@ "homepage": "https://github.com/MeetWq/nonebot-plugin-memes", "tags": [], "is_official": false + }, + { + "module_name": "nonebot_plugin_repeater", + "project_link": "nonebot-plugin-repeater", + "name": "群聊复读机", + "desc": "谁不喜欢+1呢?", + "author": "ninthseason", + "homepage": "https://github.com/ninthseason/nonebot-plugin-repeater", + "tags": [], + "is_official": false + }, + { + "module_name": "nonebot_plugin_PCtrl", + "project_link": "nonebot-plugin-pctrl", + "name": "插件管理器", + "desc": "基于HOOK的插件管理器,提供常用功能", + "author": "CherryGS", + "homepage": "https://github.com/CherryGS/nonebot_plugin_PCtrl", + "tags": [], + "is_official": false + }, + { + "module_name": "nonebot_plugin_directlinker", + "project_link": "nonebot-plugin-directlinker", + "name": "群文件直链提取器", + "desc": "提取群文件的下载直链。", + "author": "ninthseason", + "homepage": "https://github.com/ninthseason/nonebot-plugin-directlinker", + "tags": [ + { + "label": "a:cqhttp", + "color": "#ea5252" + } + ], + "is_official": false + }, + { + "module_name": "nonebot_plugin_forwarder", + "project_link": "nonebot-plugin-forwarder", + "name": "转发姬", + "desc": "群聊消息实时转发", + "author": "ninthseason", + "homepage": "https://github.com/ninthseason/nonebot_plugin_forwarder", + "tags": [], + "is_official": false } -] +] \ No newline at end of file diff --git a/website/static/unregister-sw.js b/website/static/unregister-sw.js new file mode 100644 index 00000000..50cdbb9c --- /dev/null +++ b/website/static/unregister-sw.js @@ -0,0 +1 @@ +navigator.serviceWorker.getRegistrations().then(function(e){for(var r,i=e,t=Array.isArray(i),a=0,i=t?i:i[Symbol.iterator]();;){if(t){if(a>=i.length)break;r=i[a++]}else{if((a=i.next()).done)break;r=a.value}r.unregister()}}); \ No newline at end of file