From 9b6d8b6efa251dfffdc316dfacfbd51e12369aa3 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sat, 15 Jan 2022 23:53:36 +0800 Subject: [PATCH] :memo: test autogen docs --- nonebot/__init__.py | 6 +++++- poetry.lock | 2 +- website/docs/api/plugin/_category_.json | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 website/docs/api/plugin/_category_.json diff --git a/nonebot/__init__.py b/nonebot/__init__.py index f247aaad..4c3c558f 100644 --- a/nonebot/__init__.py +++ b/nonebot/__init__.py @@ -3,7 +3,7 @@ 为方便使用,`nonebot` 模块从子模块导入了部分内容 -- `on_message` => `nonebot.plugin.on_message` +- `on_message` => {ref}`nonebot.plugin.on.on_message` - `on_notice` => `nonebot.plugin.on_notice` - `on_request` => `nonebot.plugin.on_request` - `on_metaevent` => `nonebot.plugin.on_metaevent` @@ -26,6 +26,10 @@ - `get_loaded_plugins` => `nonebot.plugin.get_loaded_plugins` - `export` => `nonebot.plugin.export` - `require` => `nonebot.plugin.require` + +FrontMatter: + sidebar_position: 0 + description: nonebot 模块 """ import importlib diff --git a/poetry.lock b/poetry.lock index 1fd2e4c6..e843bea5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -561,7 +561,7 @@ six = ">=1.6.1" type = "git" url = "https://github.com/nonebot/nb-autodoc.git" reference = "master" -resolved_reference = "58508bce0cb4a49929aefe1070f7433b459d9ce8" +resolved_reference = "a24c11421e98eb1ef983236dc869031a710043b2" [[package]] name = "nodeenv" diff --git a/website/docs/api/plugin/_category_.json b/website/docs/api/plugin/_category_.json new file mode 100644 index 00000000..455b8e49 --- /dev/null +++ b/website/docs/api/plugin/_category_.json @@ -0,0 +1,3 @@ +{ + "position": 20 +}