-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (45 loc) · 1.25 KB
/
build_doc.yml
File metadata and controls
54 lines (45 loc) · 1.25 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
name: Documentation
on:
push:
branches:
- 'main'
pull_request:
jobs:
doc_ubuntu:
name: ⚙️ Build documentation on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip3 install -r docs/requirements.txt
- name: Build doc
run: sphinx-build -a docs ./build-docs
broken_links_check:
name: 🔗 Look for broken links
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install markdown-link-check
run: npm install -g markdown-link-check@3.13.7
- name: Check all Markdown links
run: |
BROKEN_LINKS=$(markdown-link-check -q ./docs)
if [ -n "$BROKEN_LINKS" ]; then
echo "❌ Found broken links: $BROKEN_LINKS"
exit 1
else
echo "✔️ No broken links found"
exit 0
fi