diff --git a/tools/coherence/README.md b/tools/coherence/README.md index 66e2ac3..8788017 100644 --- a/tools/coherence/README.md +++ b/tools/coherence/README.md @@ -8,6 +8,7 @@ Tools for maintaining site coherence. |------|---------|-------| | check-frontmatter.py | Validates YAML frontmatter exists | `python3 check-frontmatter.py ` | | check-metadata.py | Validates required fields | `python3 check-metadata.py ` | +| fix-frontmatter.py | Adds missing frontmatter | `python3 fix-frontmatter.py ` | ## Usage @@ -16,12 +17,12 @@ Tools for maintaining site coherence. python3 check-frontmatter.py ../public/fieldnotes/ python3 check-metadata.py ../public/fieldnotes/ -# Check single file -python3 check-metadata.py file.md +# Fix missing frontmatter (dry run first!) +python3 fix-frontmatter.py --dry-run ../public/fieldnotes/ +python3 fix-frontmatter.py ../public/fieldnotes/ ``` ## Exit Codes -- 0: All files pass -- 1: Some files have issues +- 0: Success - 2: Invalid arguments