From 550dc9f74c313854675d938b1e50f43b45a7dd81 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Fri, 11 Mar 2022 00:22:39 +0800 Subject: [PATCH] update doc --- .gitignore | 1 + docs/.vuepress/config.js | 2 +- docs/usage/README.md | 8 ++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8b8f3e5..d6029a3 100644 --- a/.gitignore +++ b/.gitignore @@ -274,6 +274,7 @@ dist # vuepress build output .vuepress/dist +docs/.vuepress/.temp/ # Serverless directories .serverless/ diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 6f6c566..c002680 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -2,7 +2,7 @@ module.exports = { title: 'Nonebot Bison', description: 'Docs for Nonebot Bison', themeConfig: { - nav: [ + navbar: [ { text: '主页', link: '/' }, { text: '部署与使用', link: '/usage/' }, { text: '开发', link: '/dev/' }, diff --git a/docs/usage/README.md b/docs/usage/README.md index 0ac89ff..dee0122 100644 --- a/docs/usage/README.md +++ b/docs/usage/README.md @@ -116,15 +116,19 @@ sidebar: auto - `BISON_USE_QUEUE`: 是否用队列的方式发送消息,降低发送频率,默认开 - `BISON_RESEND_TIMES`: 最大重发次数,默认 0 - `BISON_USE_PIC_MERGE`: 是否启用多图片时合并转发(仅限群) + - `0`: 不启用(默认) - `1`: 首条消息单独发送,剩余图片合并转发 - `2`: 所有消息全部合并转发 - ::: details 配置项示例 + + ::: details 配置项示例 + - 当`BISON_USE_PIC_MERGE=1`时: ![simple1](./pic/forward-msg-simple1.png) - 当`BISON_USE_PIC_MERGE=2`时: ![simple1](./pic/forward-msg-simple2.png) - ::: + + ::: ## 使用