From bb69b80b1ed0fba0aafb1448febac91264e94cb5 Mon Sep 17 00:00:00 2001 From: snowy Date: Wed, 28 Aug 2024 11:46:25 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=B5=8B=E8=AF=95=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yml | 24 +++++++++++++++++++++--- mbcp/mp_math/__init__.py | 2 +- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index eece8af..54d97f9 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -39,12 +39,30 @@ jobs: with: node-version: 20 cache: npm # 或 pnpm / yarn + - name: Setup Pages uses: actions/configure-pages@v4 - - name: Install dependencies - run: npm ci # 或 pnpm install / yarn install / bun install + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.11' + + - name: Setup API markdown + run: |- + python -m pip install pydantic + python docs/mkdoc.py + + - name: Install node dependencies + run: |- + cd docs + npm ci + - name: Build with VitePress - run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build + run: |- + cd docs + npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/mbcp/mp_math/__init__.py b/mbcp/mp_math/__init__.py index 68f3c7a..aab25a0 100644 --- a/mbcp/mp_math/__init__.py +++ b/mbcp/mp_math/__init__.py @@ -12,7 +12,7 @@ from .angle import AnyAngle from .const import * from .equation import CurveEquation from .line import Line3 -from plane import Plane3 +from .plane import Plane3 from .point import Point3 from .segment import Segment3 from .vector import Vector3