mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 02:28:25 -05:00
Checkpoint the branch-wide content/config revisions together with workbench enhancements so chapter rendering and developer workflows stay aligned. This captures the current validation-driven formatting and parallel build/debug improvements in one commit.
MIT Press Assets
Scripts and generated files for MIT Press submission.
Figure List Generator
Extracts figure metadata from QMD source files:
# From the quarto/ directory:
python3 scripts/mit_press/figure_list_for_press.py --vol 1 -o scripts/mit_press/FIGURE_LIST_VOL1.txt
python3 scripts/mit_press/figure_list_for_press.py --vol 1 --format csv -o scripts/mit_press/FIGURE_LIST_VOL1.csv
Output Formats
- Text (default): Human-readable, organized by chapter
- CSV: Spreadsheet format with columns: Figure Number, Label, Caption, Alt-Text
- Markdown: Formatted for documentation
Output Fields
| Field | Description |
|---|---|
| Figure Number | Chapter.Figure format (e.g., 1.1, 2.3) |
| Label | Source reference (e.g., fig-ai-timeline) |
| Caption | Full caption text |
| Alt-Text | Accessibility description |
Generated Files
FIGURE_LIST_VOL1.txt- Text format, 152 figuresFIGURE_LIST_VOL1.csv- CSV format for spreadsheets