Files
cs249r_book/tools/scripts/utilities
Vijay Janapa Reddi 3b37726b27 refactor(tools): reorganize scripts directory structure for better maintainability
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)
2025-10-09 13:36:16 -04:00
..

Utility Scripts

General-purpose utility scripts for validation and checking.

Scripts

  • check_sources.py - Comprehensive source file validation
  • check_ascii.py - Check for non-ASCII characters
  • check_images.py - Validate image files and references
  • fix_titles.py - Fix title formatting
  • analyze_footnotes.sh - Analyze footnotes
  • count_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