📝 测试文档部署

This commit is contained in:
远野千束 2024-08-28 11:46:25 +08:00
parent f6e73dd3be
commit bb69b80b1e
2 changed files with 22 additions and 4 deletions

View File

@ -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:

View File

@ -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