From 448758d40dce38f02e0d9293e15465c3240b7914 Mon Sep 17 00:00:00 2001 From: Snowykami <snowykami@outlook.com> Date: Sat, 14 Dec 2024 16:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E9=87=8D=E6=9E=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=9E=84=E5=BB=BA=E6=B5=81=E7=A8=8B=EF=BC=8C=E5=B0=86?= =?UTF-8?q?=20litedoc=20=E5=91=BD=E4=BB=A4=E7=A7=BB=E8=87=B3=20build-docs.?= =?UTF-8?q?sh=20=E8=84=9A=E6=9C=AC=E4=B8=AD=EF=BC=8C=E5=B9=B6=E8=B5=8B?= =?UTF-8?q?=E4=BA=88=E6=89=A7=E8=A1=8C=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs-build.yml | 4 ++-- build-docs.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 build-docs.sh 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