-
Notifications
You must be signed in to change notification settings - Fork 12
66 lines (52 loc) · 1.51 KB
/
Copy pathdocs.yml
File metadata and controls
66 lines (52 loc) · 1.51 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
name: Documentation
on:
push:
branches:
- main
pull_request:
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'overrides/**'
- '.github/workflows/docs.yml'
- 'scripts/check_html_links.py'
- 'scripts/check_doc_refs.py'
- 'examples/CMakeLists.txt'
- 'examples/*.yaml'
- 'docs/images/packet_diagrams/**'
- 'README.md'
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install mkdocs-material pillow
- name: Generate packet diagram animations
run: make -C docs/images/packet_diagrams all
- name: Build site (strict mode)
run: mkdocs build --strict
- name: Verify landing page HTML link targets
run: python scripts/check_html_links.py site
- name: Verify benchmark and config references in docs
run: python scripts/check_doc_refs.py
deploy:
needs: check
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install mkdocs-material pillow
- name: Generate packet diagram animations
run: make -C docs/images/packet_diagrams all
- name: Build and deploy
run: mkdocs gh-deploy --force