-
Notifications
You must be signed in to change notification settings - Fork 585
67 lines (56 loc) · 1.77 KB
/
Copy pathdocs-check.yml
File metadata and controls
67 lines (56 loc) · 1.77 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Docs check
# ci.yml ignores docs/** and **/*.md, so documentation drift was never caught.
# This workflow runs the documentation checks: the English/Chinese pair check,
# the whole-tree page/ADR check, the AGENTS.md/CLAUDE.md policy-sync gate, and
# a VitePress build, which fails on a dead link anywhere in the tree.
# `check:release-docs` stays out of CI on purpose because prerelease branches
# must supply the stable documentation version explicitly.
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'README*.md'
- 'AGENTS.md'
- 'CLAUDE.md'
- 'packages/shared/src/changelog*.ts'
- 'scripts/check-*.mjs'
- 'docs/scripts/**'
- '.github/workflows/docs-check.yml'
pull_request:
paths:
- 'docs/**'
- 'README*.md'
- 'AGENTS.md'
- 'CLAUDE.md'
- 'packages/shared/src/changelog*.ts'
- 'scripts/check-*.mjs'
- 'docs/scripts/**'
- '.github/workflows/docs-check.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docs-check-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
name: Docs checks
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
# Same Node as ci.yml (matches the runtime Electron 43 bundles).
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check AGENTS.md / CLAUDE.md policy sync
run: pnpm check:agent-policy
- name: Check locale pairs and every documentation page
run: pnpm docs:check
- name: Build the documentation site (dead links and routes)
run: pnpm docs:build