重构文档构建流程,将 litedoc 命令移至 build-docs.sh 脚本中,并赋予执行权限

This commit is contained in:
远野千束(神羽) 2024-12-14 16:25:05 +08:00
parent a8cc471f7b
commit 448758d40d
2 changed files with 4 additions and 2 deletions

View File

@ -40,8 +40,8 @@ jobs:
- name: Setup API markdown
run: |-
python -m pip install litedoc
litedoc nonebot_plugin_marshoai -o docs/zh/dev/api -l zh-Hans -cd class -fd func -md func -vd var -bu https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/
litedoc nonebot_plugin_marshoai -o docs/en/dev/api -l en -cd class -fd func -md func -vd var -bu https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/
chmod +x build-docs.sh
./build-docs.sh
- name: 安装 pnpm
uses: pnpm/action-setup@v2

2
build-docs.sh Executable file
View File

@ -0,0 +1,2 @@
litedoc nonebot_plugin_marshoai -o docs/zh/dev/api -l zh-Hans -cd class -fd func -md func -vd var -bu https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/
litedoc nonebot_plugin_marshoai -o docs/en/dev/api -l en -cd class -fd func -md func -vd var -bu https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/