Repository navigation
72 lines (67 loc) · 2.26 KB
/
Copy pathdocs.yml
File metadata and controls
72 lines (67 loc) · 2.26 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
68
69
70
71
72
name: Docs
# The documentation checks (python tools/check --only docs): every local link in the current pages resolves, the version lines and
# installer names agree with docs/data/release.json, the capability table and its summaries are what docs/data/capabilities.json says, and the
# settings page matches the register. Python standard library only; nothing is built, downloaded or run on a GPU.
# Archived pages (docs/history/, release notes, docs/bench-results) are not checked; their baseline is history/LINK-BASELINE.md.
on:
push:
branches: [main]
paths:
- .github/workflows/docs.yml
- '**/*.md'
- docs/data/release.json
- docs/data/capabilities.json
- terminal/data/settings-register.json
- tools/check
- tools/check_links.py
- tools/doc_pages.py
- tools/release_manifest.py
- tools/capability_table.py
- tools/settings_register.py
- terminal/strata_cli/__init__.py
- engine/CMakeLists.txt
- app/host/package.json
- app/desktop/package.json
pull_request:
paths:
- .github/workflows/docs.yml
- '**/*.md'
- docs/data/release.json
- docs/data/capabilities.json
- terminal/data/settings-register.json
- tools/check
- tools/check_links.py
- tools/doc_pages.py
- tools/release_manifest.py
- tools/capability_table.py
- tools/settings_register.py
- terminal/strata_cli/__init__.py
- engine/CMakeLists.txt
- app/host/package.json
- app/desktop/package.json
permissions:
contents: read
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
name: Links, release manifest, capability table
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: tools/check docs
run: python tools/check --only docs --keep --scratch "$RUNNER_TEMP/check" --json "$RUNNER_TEMP/check/result.json"
- name: Log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: docs-check
path: ${{ runner.temp }}/check/*.log
retention-days: 7