mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-22 22:27:38 +08:00
📝 测试文档部署
This commit is contained in:
parent
f6e73dd3be
commit
bb69b80b1e
24
.github/workflows/deploy-docs.yml
vendored
24
.github/workflows/deploy-docs.yml
vendored
@ -39,12 +39,30 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm # 或 pnpm / yarn
|
cache: npm # 或 pnpm / yarn
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v4
|
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
|
- 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
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -12,7 +12,7 @@ from .angle import AnyAngle
|
|||||||
from .const import *
|
from .const import *
|
||||||
from .equation import CurveEquation
|
from .equation import CurveEquation
|
||||||
from .line import Line3
|
from .line import Line3
|
||||||
from plane import Plane3
|
from .plane import Plane3
|
||||||
from .point import Point3
|
from .point import Point3
|
||||||
from .segment import Segment3
|
from .segment import Segment3
|
||||||
from .vector import Vector3
|
from .vector import Vector3
|
||||||
|
Loading…
Reference in New Issue
Block a user