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