Commit Graph

9 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
0267506dbe Update requirements.txt 2026-02-26 15:23:09 -05:00
Vijay Janapa Reddi
853eb03ee8 style: apply consistent whitespace and formatting across codebase 2025-12-13 14:05:34 -05:00
Vijay Janapa Reddi
29cefb9a6f fix: centralize path configuration for book/ restructure
- Add BOOK_ROOT, QUARTO_DIR, TOOLS_DIR, DEPS_DIR, DOCKER_DIR env vars to all workflows
- Update path references to use centralized env vars
- Fix requirements.txt to reference book/tools/dependencies
- Fix pyproject.toml entry points: cli.main -> book.cli.main
- Add __init__.py to book/ and book/tools/ for Python package support
- Fix Dockerfile path casing (dockerfile -> Dockerfile)
- Fix publish-live.yml relative path after cd

This enables TinyTorch to coexist at repo root alongside book/ directory.
2025-12-05 15:14:01 -08:00
Vijay Janapa Reddi
6018830d4c 🔗 Complete pre-commit integration: Book Binder + TikZ cleanup
 Perfect pre-commit integration achieved:
- Added check-build-artifacts hook using ./binder check
- Fixed exit codes: returns 1 when artifacts found, 0 when clean
- Removed tracked TikZ diagram PDFs from git (build artifacts)
- Enhanced artifact detection and cleanup patterns

🧹 TikZ diagram management:
- Removed diagram-*.pdf files from git tracking
- Added cleanup patterns for generated diagrams
- Pre-commit now properly detects and blocks artifact commits

🚀 Complete workflow proven:
1. git commit → pre-commit runs binder check
2. If artifacts found → commit blocked with guidance
3. User runs ./binder clean → artifacts removed
4. Retry commit → pre-commit passes 

🎉 Book Binder: Complete MLSysBook development CLI
- Single tool for all development operations
- Perfect pre-commit integration
- Bulletproof artifact detection and cleanup
- Professional git workflow integration
2025-07-28 12:03:13 -04:00
Vijay Janapa Reddi
f032447639 Restructure repository for better organization and maintainability
- Move high-level assets to assets/ directory (covers, icons, styles, media)
- Consolidate build configuration in config/ directory (extensions, lua, tex)
- Group development tools under tools/ directory (scripts, dependencies, setup)
- Organize all book content under book/ directory
- Update all path references in _quarto.yml and other config files
- Preserve git history for all moved files
- Maintain full functionality for both HTML and PDF builds

This reorganization reduces root directory clutter from 50+ files to essential
project files only, providing clear separation of concerns and improved
maintainability for the textbook project.
2025-07-25 11:03:16 -04:00
Vijay Janapa Reddi
0290132eab Adds dependencies for cross-referencing
Adds dependencies required for the cross-referencing script, including sentence transformers, faiss-cpu, and scikit-learn.
2025-07-19 10:58:20 -04:00
Vijay Janapa Reddi
8d72833ecf Adds image validation pre-commit hook
Adds a pre-commit hook to validate image files.
This ensures that images are not corrupted and have the correct format.

Also, renames several png images to jpg or gif and updates references in the qmd files.
2025-07-11 18:09:15 -04:00
Vijay Janapa Reddi
dab27e0829 Updates dependencies for PDF processing
Consolidates PDF processing dependencies by enabling `ghostscript` in `requirements.txt`.

Removes the comment suggesting `ghostscript` is an alternative to a system package and clarifies its role.
2025-06-30 10:29:45 -04:00
Vijay Janapa Reddi
fa86068984 Adds project dependencies and setup guide
Adds a comprehensive requirements file and a scripts README
documenting dependencies, pre-commit setup, and project structure.

This enhancement streamlines project setup and ensures consistent
dependency management, improving maintainability and collaboration.
2025-06-30 10:22:13 -04:00