Files
cs249r_book/tools/scripts/.backup_20251009_133211.json
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

113 lines
4.0 KiB
JSON

{
"timestamp": "20251009_133211",
"files": [
"validate_part_keys.py",
"cleanup_containers.py",
"remove_bg.py",
"test_publish_live.py",
"check_custom_extensions.py",
"cleanup_workflow_runs_gh.py",
"fix_mid_paragraph_bold.py",
"test_format_tables.py",
"manage_external_images.py",
"format_tables.py",
"__init__.py",
"reorganize_scripts.py",
"test_image_extraction.py",
"generate_release_notes.py",
"rename_downloaded_images.py",
"download_external_images.py",
"standardize_glossaries.py",
"rename_auto_images.py",
"validate_image_references.py",
"format_python_in_qmd.py",
"list_containers.py",
"preflight.py",
"content/check_unreferenced_labels.py",
"content/check_forbidden_footnotes.py",
"content/extract_headers.py",
"content/find_acronyms.py",
"content/fix_bibliography.py",
"content/check_fig_references.py",
"content/footnote_cleanup.py",
"content/fix_callout_titles.py",
"content/format_blank_lines.py",
"content/extract_concepts.py",
"content/check_duplicate_labels.py",
"content/clean_bibliographies.py",
"content/manage_captions.py",
"content/manage_section_ids.py",
"cross_refs/optimized_xrefs_generator.py",
"cross_refs/progressive_xref_generator.py",
"cross_refs/fine_tune_connections.py",
"cross_refs/academic_explanation_generator.py",
"cross_refs/contextual_explanation_generator.py",
"cross_refs/add_target_sections.py",
"cross_refs/fix_intro_explanations.py",
"cross_refs/regenerate_xrefs.py",
"cross_refs/refined_experiments.py",
"cross_refs/convert_to_lua_format.py",
"cross_refs/cognitive_load_optimized_generator.py",
"cross_refs/llm_enhanced_xrefs.py",
"cross_refs/improve_explanations.py",
"cross_refs/quality_analyzer.py",
"cross_refs/production_xref_generator.py",
"cross_refs/analyze_xrefs_coverage.py",
"cross_refs/context_aware_xref_generator.py",
"cross_refs/concept_xrefs_generator.py",
"cross_refs/experimental_framework.py",
"cross_refs/add_section_titles.py",
"cross_refs/fix_xref_issues.py",
"cross_refs/enhance_xref_explanations.py",
"cross_refs/enhance_all_xrefs.py",
"cross_refs/quick_enhance.py",
"cross_refs/manage_cross_references.py",
"utilities/analyze_git_usage.py",
"utilities/check_ascii.py",
"utilities/check_list_formatting.py",
"utilities/manage_sources.py",
"utilities/manage_images.py",
"utilities/convert_svg_to_png.py",
"utilities/git_cleanup.py",
"testing/test_manage_section_ids.py",
"testing/run_tests.py",
"common/config.py",
"common/logging_config.py",
"common/validators.py",
"common/base_classes.py",
"common/__init__.py",
"common/exceptions.py",
"publish/__init__.py",
"publish/render_compress_publish.py",
"publish/modify_dev_announcement.py",
"glossary/smart_consolidation.py",
"glossary/consolidate_similar_terms.py",
"glossary/rule_based_consolidation.py",
"glossary/clean_master_glossary.py",
"glossary/generate_glossary.py",
"glossary/build_global_glossary.py",
"maintenance/correct_image_references_case.py",
"maintenance/rename_images_to_snake_case.py",
"maintenance/analyze_image_sizes.py",
"maintenance/release_notes.py",
"maintenance/integrated_image_analyzer.py",
"maintenance/update_texlive_packages.py",
"maintenance/fix_changelog_years.py",
"maintenance/compress_images.py",
"maintenance/enforce_snake_case_images_final.py",
"maintenance/enforce_snake_case.py",
"maintenance/generate_casing_fix_script.py",
"maintenance/convert_images_to_lowercase.py",
"maintenance/fix_image_case.py",
"maintenance/repo_health_check.py",
"maintenance/change_log.py",
"maintenance/changelog-releasenotes.py",
"maintenance/cleanup_build_artifacts.py",
"maintenance/generate_release_content.py",
"build/generate_stats.py",
"genai/quizzes.py",
"genai/footnote_assistant.py",
"genai/header_update.py",
"genai/fix_dashes.py"
]
}