feat: add chapter validation to build pipeline #24
Reference in New Issue
Block a user
Delete Branch "feat/build-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a
validate_chaptersstep to the build pipeline. It checks for empty chapters and missing H1 headers, ensuring the manuscript meets basic quality standards before compilation. This prevents broken builds and improves the overall reliability of the book generation process.Work submitted in PR #26. Added
validate_chapters()function that checks for empty files, missing H1 headers, numbering gaps, duplicates, and header/filename mismatches. Validation runs automatically before compilation. Use--validateflag for validation-only mode.Approved.