diff --git a/website/docs/advanced/adapter.md b/website/docs/advanced/adapter.md index 61f52a69..a6c5eda9 100644 --- a/website/docs/advanced/adapter.md +++ b/website/docs/advanced/adapter.md @@ -1,5 +1,5 @@ --- -sidebar_position: 1 +sidebar_position: 2 description: 注册适配器与指定平台交互 options: diff --git a/website/docs/tutorial/application.md b/website/docs/advanced/application.md similarity index 99% rename from website/docs/tutorial/application.md rename to website/docs/advanced/application.md index 3d692891..295712d5 100644 --- a/website/docs/tutorial/application.md +++ b/website/docs/advanced/application.md @@ -4,7 +4,7 @@ description: 创建一个 NoneBot 项目 options: menu: - - category: tutorial + - category: advanced weight: 20 --- diff --git a/website/docs/advanced/dependency.mdx b/website/docs/advanced/dependency.mdx index 3efc35cd..bb9b1fc7 100644 --- a/website/docs/advanced/dependency.mdx +++ b/website/docs/advanced/dependency.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 6 +sidebar_position: 7 description: 通过依赖注入获取上下文信息 options: diff --git a/website/docs/advanced/driver.md b/website/docs/advanced/driver.md index 222921de..732def0c 100644 --- a/website/docs/advanced/driver.md +++ b/website/docs/advanced/driver.md @@ -1,5 +1,5 @@ --- -sidebar_position: 0 +sidebar_position: 1 description: 选择合适的驱动器运行机器人 options: @@ -17,7 +17,7 @@ options: ::: :::tip 提示 -如何**安装**驱动器请参考[安装驱动器](../tutorial/store.mdx#安装驱动器)。 +如何**安装**驱动器请参考[安装驱动器](../store.mdx#安装驱动器)。 ::: ## 驱动器类型 @@ -47,7 +47,7 @@ NoneBot 中的客户端和服务端型驱动器可以相互配合使用,但服 其中,`` 代表**驱动器模块路径**;`` 代表**驱动器类名**,默认为 `Driver`;`` 代表**驱动器混入类名**,默认为 `Mixin`。即,我们需要选择一个主要驱动器,然后在其基础上配合使用其他驱动器的功能。主要驱动器可以为客户端或服务端类型,但混入类驱动器只能为客户端类型。 -特别的,为了简化内置驱动器模块路径,我们可以使用 `~` 符号作为内置驱动器模块路径的前缀,如 `~fastapi` 代表使用内置驱动器 `fastapi`。NoneBot 内置了多个驱动器适配,但需要安装额外依赖才能使用,具体请参考[安装驱动器](../tutorial/store.mdx#安装驱动器)。常见的驱动器配置如下: +特别的,为了简化内置驱动器模块路径,我们可以使用 `~` 符号作为内置驱动器模块路径的前缀,如 `~fastapi` 代表使用内置驱动器 `fastapi`。NoneBot 内置了多个驱动器适配,但需要安装额外依赖才能使用,具体请参考[安装驱动器](../store.mdx#安装驱动器)。常见的驱动器配置如下: ```dotenv DRIVER=~fastapi diff --git a/website/docs/advanced/matcher-provider.md b/website/docs/advanced/matcher-provider.md index 6af8f003..f339168c 100644 --- a/website/docs/advanced/matcher-provider.md +++ b/website/docs/advanced/matcher-provider.md @@ -1,5 +1,5 @@ --- -sidebar_position: 10 +sidebar_position: 11 description: 自定义事件响应器存储 options: diff --git a/website/docs/advanced/matcher.md b/website/docs/advanced/matcher.md index 130b5435..2831ac17 100644 --- a/website/docs/advanced/matcher.md +++ b/website/docs/advanced/matcher.md @@ -1,5 +1,5 @@ --- -sidebar_position: 5 +sidebar_position: 6 description: 事件响应器组成与内置响应规则 options: diff --git a/website/docs/advanced/plugin-info.md b/website/docs/advanced/plugin-info.md index 5f45dc7d..ceb1be59 100644 --- a/website/docs/advanced/plugin-info.md +++ b/website/docs/advanced/plugin-info.md @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 3 description: 填写与获取插件相关的信息 options: diff --git a/website/docs/advanced/plugin-nesting.md b/website/docs/advanced/plugin-nesting.md index 0a306d28..d2c8b8a1 100644 --- a/website/docs/advanced/plugin-nesting.md +++ b/website/docs/advanced/plugin-nesting.md @@ -1,5 +1,5 @@ --- -sidebar_position: 3 +sidebar_position: 4 description: 编写与加载嵌套插件 options: diff --git a/website/docs/advanced/requiring.md b/website/docs/advanced/requiring.md index 1a9fe4b0..99eb60c6 100644 --- a/website/docs/advanced/requiring.md +++ b/website/docs/advanced/requiring.md @@ -1,5 +1,5 @@ --- -sidebar_position: 4 +sidebar_position: 5 description: 使用其他插件提供的功能 options: diff --git a/website/docs/advanced/routing.md b/website/docs/advanced/routing.md index efa1ac55..8ddd9680 100644 --- a/website/docs/advanced/routing.md +++ b/website/docs/advanced/routing.md @@ -1,5 +1,5 @@ --- -sidebar_position: 9 +sidebar_position: 10 description: 添加服务端路由规则 options: diff --git a/website/docs/advanced/runtime-hook.md b/website/docs/advanced/runtime-hook.md index 6e3c1c41..7ecebe67 100644 --- a/website/docs/advanced/runtime-hook.md +++ b/website/docs/advanced/runtime-hook.md @@ -1,5 +1,5 @@ --- -sidebar_position: 8 +sidebar_position: 9 description: 在特定的生命周期中执行代码 options: diff --git a/website/docs/advanced/session-updating.md b/website/docs/advanced/session-updating.md index f804ba96..0cb3ca72 100644 --- a/website/docs/advanced/session-updating.md +++ b/website/docs/advanced/session-updating.md @@ -1,5 +1,5 @@ --- -sidebar_position: 7 +sidebar_position: 8 description: 控制会话响应对象 options: diff --git a/website/docs/appendices/config.mdx b/website/docs/appendices/config.mdx index 482b2acb..2ce3fa78 100644 --- a/website/docs/appendices/config.mdx +++ b/website/docs/appendices/config.mdx @@ -284,7 +284,7 @@ WEATHER__COMMAND_PRIORITY=10 - **类型**: `str` - **默认值**: `"~fastapi"` -NoneBot 运行所使用的驱动器。具体配置方法可以参考[安装驱动器](../tutorial/store.mdx#安装驱动器)和[选择驱动器](../advanced/driver.md)。 +NoneBot 运行所使用的驱动器。具体配置方法可以参考[安装驱动器](../store.mdx#安装驱动器)和[选择驱动器](../advanced/driver.md)。 diff --git a/website/docs/best-practice/alconna/README.mdx b/website/docs/best-practice/alconna/README.mdx index b6f79eac..705517c1 100644 --- a/website/docs/best-practice/alconna/README.mdx +++ b/website/docs/best-practice/alconna/README.mdx @@ -30,7 +30,7 @@ import TabItem from "@theme/TabItem"; ## 安装插件 -在使用前请先安装 `nonebot-plugin-alconna` 插件至项目环境中,可参考[获取商店插件](../../tutorial/store.mdx#安装插件)来了解并选择安装插件的方式。如: +在使用前请先安装 `nonebot-plugin-alconna` 插件至项目环境中,可参考[获取商店插件](../../store.mdx#安装插件)来了解并选择安装插件的方式。如: 在**项目目录**下执行以下命令: diff --git a/website/docs/best-practice/data-storing.md b/website/docs/best-practice/data-storing.md index d9f3a8c5..c05f8f2b 100644 --- a/website/docs/best-practice/data-storing.md +++ b/website/docs/best-practice/data-storing.md @@ -9,7 +9,7 @@ description: 存储数据文件到本地 ## 安装插件 -在使用前请先安装 `nonebot-plugin-localstore` 插件至项目环境中,可参考[获取商店插件](../tutorial/store.mdx#安装插件)来了解并选择安装插件的方式。如: +在使用前请先安装 `nonebot-plugin-localstore` 插件至项目环境中,可参考[获取商店插件](../store.mdx#安装插件)来了解并选择安装插件的方式。如: 在**项目目录**下执行以下命令: diff --git a/website/docs/best-practice/error-tracking.md b/website/docs/best-practice/error-tracking.md index a28a22d1..12b5d842 100644 --- a/website/docs/best-practice/error-tracking.md +++ b/website/docs/best-practice/error-tracking.md @@ -9,7 +9,7 @@ description: 使用 sentry 进行错误跟踪 ## 安装插件 -在使用前请先安装 `nonebot-plugin-sentry` 插件至项目环境中,可参考[获取商店插件](../tutorial/store.mdx#安装插件)来了解并选择安装插件的方式。如: +在使用前请先安装 `nonebot-plugin-sentry` 插件至项目环境中,可参考[获取商店插件](../store.mdx#安装插件)来了解并选择安装插件的方式。如: 在**项目目录**下执行以下命令: diff --git a/website/docs/best-practice/scheduler.md b/website/docs/best-practice/scheduler.md index 229b27ab..a5546255 100644 --- a/website/docs/best-practice/scheduler.md +++ b/website/docs/best-practice/scheduler.md @@ -9,7 +9,7 @@ description: 定时执行任务 ## 安装插件 -在使用前请先安装 `nonebot-plugin-apscheduler` 插件至项目环境中,可参考[获取商店插件](../tutorial/store.mdx#安装插件)来了解并选择安装插件的方式。如: +在使用前请先安装 `nonebot-plugin-apscheduler` 插件至项目环境中,可参考[获取商店插件](../store.mdx#安装插件)来了解并选择安装插件的方式。如: 在**项目目录**下执行以下命令: diff --git a/website/docs/tutorial/store.mdx b/website/docs/store.mdx similarity index 99% rename from website/docs/tutorial/store.mdx rename to website/docs/store.mdx index 9332ac8e..3543de15 100644 --- a/website/docs/tutorial/store.mdx +++ b/website/docs/store.mdx @@ -1,11 +1,6 @@ --- sidebar_position: 2 description: 从商店安装适配器和插件 - -options: - menu: - - category: tutorial - weight: 40 --- # 获取商店内容 diff --git a/website/docs/tutorial/create-plugin.md b/website/docs/tutorial/create-plugin.md index 9ce4ed4d..26a69b56 100644 --- a/website/docs/tutorial/create-plugin.md +++ b/website/docs/tutorial/create-plugin.md @@ -1,5 +1,5 @@ --- -sidebar_position: 3 +sidebar_position: 2 description: 创建并加载自定义插件 options: @@ -64,7 +64,7 @@ options: ::: :::caution 注意 -如果在之前的[创建项目](./application.md)章节中手动创建了相关文件,那么你需要做出如下修改: +如果在[手动创建项目](../advanced/application.md)章节中手动创建了相关文件,那么你需要做出如下修改: 1. 在项目目录中创建一个两层文件夹 `awesome_bot/plugins` diff --git a/website/docs/editor-support.md b/website/docs/tutorial/editor-support.md similarity index 94% rename from website/docs/editor-support.md rename to website/docs/tutorial/editor-support.md index 0d2f96d6..422ab014 100644 --- a/website/docs/editor-support.md +++ b/website/docs/tutorial/editor-support.md @@ -1,6 +1,11 @@ --- -sidebar_position: 2 +sidebar_position: 0 description: 配置编辑器以获得最佳体验 + +options: + menu: + - category: tutorial + weight: 20 --- # 编辑器支持 diff --git a/website/docs/tutorial/event-data.mdx b/website/docs/tutorial/event-data.mdx index 5f8ccb54..b1c0ceab 100644 --- a/website/docs/tutorial/event-data.mdx +++ b/website/docs/tutorial/event-data.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 6 +sidebar_position: 5 description: 通过依赖注入获取所需事件信息 options: diff --git a/website/docs/tutorial/handler.mdx b/website/docs/tutorial/handler.mdx index 466b15b3..46f0a848 100644 --- a/website/docs/tutorial/handler.mdx +++ b/website/docs/tutorial/handler.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 5 +sidebar_position: 4 description: 处理接收到的特定事件 options: diff --git a/website/docs/tutorial/matcher.md b/website/docs/tutorial/matcher.md index 8d3bf392..b740dac7 100644 --- a/website/docs/tutorial/matcher.md +++ b/website/docs/tutorial/matcher.md @@ -1,5 +1,5 @@ --- -sidebar_position: 4 +sidebar_position: 3 description: 响应接收到的特定事件 options: diff --git a/website/docs/tutorial/message.md b/website/docs/tutorial/message.md index 86989c49..03d9918b 100644 --- a/website/docs/tutorial/message.md +++ b/website/docs/tutorial/message.md @@ -1,5 +1,5 @@ --- -sidebar_position: 7 +sidebar_position: 6 description: 处理消息序列与消息段 options: