Skip to content

Commit a4d5edd

Browse files
committed
Updated GHA workflow to run structure/formatting checks on commit
1 parent 3f60030 commit a4d5edd

3 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/build-asciidoc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
sudo apt-get update
4949
sudo apt-get install --no-install-recommends calibre pandoc
5050
51+
- name: Validate Book Content
52+
run: ./bin/check.sh
53+
5154
- name: Build Documentation
5255
working-directory: ./book
5356
run: |

bin/check.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6+
7+
echo "Running all validation checks..."
8+
echo ""
9+
10+
# Run cross-reference check
11+
echo "=== Checking cross-references ==="
12+
"$SCRIPT_DIR/check-refs.sh"
13+
echo ""
14+
15+
# Run formatting check
16+
echo "=== Checking code block formatting ==="
17+
"$SCRIPT_DIR/check-formatting.sh"
18+
echo ""
19+
20+
echo "✓ All validation checks passed"

bin/make-book.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
set -e
44

5-
# Check for orphaned cross-references
6-
./bin/check-refs.sh
7-
8-
# Check formatting
9-
.bin/check-formatting.sh
5+
# Validate asciidoc structure and formatting
6+
./bin/check.sh
107

118
# create the target directory for where the book will build
129
rm -rf target

0 commit comments

Comments
 (0)