diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 17ce313b..49dd804e 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -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 diff --git a/build-docs.sh b/build-docs.sh new file mode 100755 index 00000000..938463ab --- /dev/null +++ b/build-docs.sh @@ -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/ \ No newline at end of file