-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (80 loc) · 2.44 KB
/
docs.yml
File metadata and controls
96 lines (80 loc) · 2.44 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Documentation
on:
push:
branches: [ main ]
paths:
- '**.md'
- 'README.md'
pull_request:
branches: [ main ]
paths:
- '**.md'
- 'README.md'
workflow_dispatch:
jobs:
docs:
name: Documentation Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check README structure
run: |
echo "📚 Checking README structure..."
# Check that README has essential sections
required_sections=(
"Features"
"Quick Start"
"Examples"
"Toolchain Management"
"License"
)
for section in "${required_sections[@]}"; do
if grep -q "## $section" README.md; then
echo "✅ Section '$section' found"
else
echo "❌ Section '$section' missing"
exit 1
fi
done
# Check that README mentions key features
required_features=(
"Rocq Platform Integration"
"coq-of-rust Support"
"Bazel 8 bzlmod"
"Hermetic Toolchains"
"Cross-Platform"
)
for feature in "${required_features[@]}"; do
if grep -q "$feature" README.md; then
echo "✅ Feature '$feature' mentioned"
else
echo "❌ Feature '$feature' not mentioned"
exit 1
fi
done
echo "✅ README structure is complete"
- name: Check markdown links
run: |
echo "🔗 Checking markdown links..."
# Install markdown-link-check
npm install -g markdown-link-check
# Check all markdown files
find . -name "*.md" -exec markdown-link-check {} \;
echo "✅ All markdown links are valid"
- name: Check example documentation
run: |
echo "📂 Checking example documentation..."
# Check that examples have README files
for example_dir in examples/*/; do
if [ -d "$example_dir" ]; then
example_name=$(basename "$example_dir")
if [ -f "${example_dir}README.md" ]; then
echo "✅ $example_name has README"
else
echo "❌ $example_name missing README"
# Don't fail, just warn
fi
fi
done
echo "✅ Example documentation checked"