mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 00:59:07 -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)
Image Management Scripts
Scripts for managing, processing, and validating images in the book.
Image Processing
compress_images.py- Compress images to reduce file sizeconvert_svg_to_png.py- Convert SVG files to PNG formatremove_bg.py- Remove backgrounds from images
Image Management
manage_images.py- Main image management utilitydownload_external_images.py- Download external imagesmanage_external_images.py- Manage external image referencesrename_auto_images.py- Rename automatically generated imagesrename_downloaded_images.py- Rename downloaded images
Validation
validate_image_references.py- Ensure all image references are validanalyze_image_sizes.py- Analyze image sizes and suggest optimizations