Jekyll Pre-processor Reference
scripts/prepare_docs.py parses all Markdown files in the repository’s docs/ folder and auto-generates minimal Jekyll front matter blocks if they are missing.
🛠️ CLI Execution
python3 scripts/prepare_docs.py
- Scan Directory: Scans the repository’s relative
docs/directory. - Title Inference: Automatically parses the first
#or##heading line to populate the front matter title, falling back to a formatted version of the file’s base name.
🔒 Exit Codes
0: Success.1: Directory not found or write-protection error.