Commit Graph

3 Commits

Author SHA1 Message Date
eae9398fa5 Update compile.py (manual merge)
Some checks failed
Smoke Test / smoke (push) Has been cancelled
2026-04-11 01:36:29 +00:00
Alexander Whitestone
948d520b83 burn: add chapter validation to build pipeline (closes #24)
Add validate_chapters() function that checks:
- No empty chapter files (whitespace-only counts as empty)
- Every chapter starts with an H1 header (# Chapter N — Title)
- No gaps in chapter numbering (sequential from 1)
- No duplicate chapter numbers
- Header chapter number matches filename number
- Warns on suspiciously short chapters (<50 words)

Validation runs automatically before compilation. If errors are found,
compilation is aborted with clear error messages showing exactly what
to fix.

CLI flags:
  python3 compile.py --validate     # validate only
  python3 compile.py --no-validate  # skip validation
  python3 compile.py                # validate then compile
2026-04-10 19:57:27 -04:00
Alexander Whitestone
8e7501bb6f Full audiobook (18 chapters), compilation script, EPUB, compiled markdown 2026-04-09 11:21:11 -04:00