diff --git a/.github/workflows/website-deploy.yml b/.github/workflows/website-deploy.yml index da7ba096..4c8df7d0 100644 --- a/.github/workflows/website-deploy.yml +++ b/.github/workflows/website-deploy.yml @@ -25,7 +25,7 @@ jobs: - name: Install and build run: | - poetry run python ./docs_build/autodoc.py + poetry run nb-autodoc nonebot cp -r ./build/nonebot/* ./website/docs/api/ yarn prettier yarn build diff --git a/docs_build/autodoc.py b/docs_build/autodoc.py deleted file mode 100644 index de386cad..00000000 --- a/docs_build/autodoc.py +++ /dev/null @@ -1,10 +0,0 @@ -from nb_autodoc import Module, Context -from nb_autodoc.builders.markdown import MarkdownBuilder - -context = Context() - -module = Module("nonebot", context=context) - -builder = MarkdownBuilder(module, output_dir="build") - -builder.write() diff --git a/poetry.lock b/poetry.lock index cae3e7fd..45d4c3c1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -521,7 +521,7 @@ six = ">=1.6.1" type = "git" url = "https://github.com/nonebot/nb-autodoc.git" reference = "master" -resolved_reference = "ab906e128e52946c5c37de77a06019c77bd34e1d" +resolved_reference = "dae91520cf274d61d77be2c47d08e21b12547db6" [[package]] name = "nonebug" diff --git a/website/docs/advanced/publish-plugin.md b/website/docs/advanced/publish-plugin.md index 47bd15f6..a53b635c 100644 --- a/website/docs/advanced/publish-plugin.md +++ b/website/docs/advanced/publish-plugin.md @@ -9,7 +9,7 @@ options: ## 前注 -本章节仅包含插件发布流程指导,插件开发请查阅 **[创建插件](../tutorial/plugin/config-plugin.md)** 章节与 **[Plugin API 文档](../api/plugin.md)** 。 +本章节仅包含插件发布流程指导,插件开发请查阅 **[创建插件](../tutorial/plugin/config-plugin.md)** 章节与 **[Plugin API 文档](../api/plugin/plugin.md)** 。 ## 插件发布流程 diff --git a/website/docs/api/adapters/_category_.json b/website/docs/api/adapters/_category_.json deleted file mode 100644 index 3714fde8..00000000 --- a/website/docs/api/adapters/_category_.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "position": 14 -} diff --git a/website/docs/api/drivers/_category_.json b/website/docs/api/drivers/_category_.json deleted file mode 100644 index 6bd1772a..00000000 --- a/website/docs/api/drivers/_category_.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "position": 13 -}