mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-28 16:48:30 -05:00
Consolidated 21 root-level scripts into logical subdirectories: New structure: - images/: All image management scripts (10 files consolidated from 3 locations) - infrastructure/: CI/CD and container scripts (3 files) - content/: Added formatting scripts (3 files moved from root) - testing/: All test scripts (5 files consolidated) - glossary/: Added standardize_glossaries.py - maintenance/: Added generate_release_notes.py, preflight.py - utilities/: Added validation scripts Benefits: - Reduced root-level clutter (21 → 2 files) - Related scripts grouped logically - Easier to find and maintain scripts - Follows standard project organization patterns Changes: - Created new subdirectories: images/, infrastructure/ - Moved scripts from root to appropriate subdirectories - Consolidated scattered scripts (images were in 3 places) - Updated all pre-commit hook references - Created README files for new directories - Included backup file for rollback if needed Tool: tools/scripts/reorganize_scripts.py (for future reference)
Utility Scripts
General-purpose utility scripts for validation and checking.
Scripts
check_sources.py- Comprehensive source file validationcheck_ascii.py- Check for non-ASCII characterscheck_images.py- Validate image files and referencesfix_titles.py- Fix title formattinganalyze_footnotes.sh- Analyze footnotescount_footnotes.sh- Count footnotes
Quick Usage
# Validate source files
python check_sources.py
# Check for encoding issues
python check_ascii.py
# Validate images
python check_images.py