-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (42 loc) · 1.04 KB
/
docs.yml
File metadata and controls
52 lines (42 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build Documentation
on:
push:
paths:
- 'docs/**'
- 'hackagent/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'docs/package-lock.json'
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install Python dependencies
run: uv sync --group docs
- name: Install Node.js dependencies
run: |
cd docs
npm ci
- name: Generate API documentation
run: uv run python docs/scripts/generate_docs.py --current
- name: Build documentation
run: |
cd docs
npm run build