🐛 fix docs build fail

This commit is contained in:
hemengyang 2022-01-14 22:05:56 +08:00
parent 341ee94848
commit d26fda7320
6 changed files with 3 additions and 19 deletions

View File

@ -25,7 +25,7 @@ jobs:
- name: Install and build - name: Install and build
run: | run: |
poetry run python ./docs_build/autodoc.py poetry run nb-autodoc nonebot
cp -r ./build/nonebot/* ./website/docs/api/ cp -r ./build/nonebot/* ./website/docs/api/
yarn prettier yarn prettier
yarn build yarn build

View File

@ -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()

2
poetry.lock generated
View File

@ -521,7 +521,7 @@ six = ">=1.6.1"
type = "git" type = "git"
url = "https://github.com/nonebot/nb-autodoc.git" url = "https://github.com/nonebot/nb-autodoc.git"
reference = "master" reference = "master"
resolved_reference = "ab906e128e52946c5c37de77a06019c77bd34e1d" resolved_reference = "dae91520cf274d61d77be2c47d08e21b12547db6"
[[package]] [[package]]
name = "nonebug" name = "nonebug"

View File

@ -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)** 。
## 插件发布流程 ## 插件发布流程

View File

@ -1,3 +0,0 @@
{
"position": 14
}

View File

@ -1,3 +0,0 @@
{
"position": 13
}