refactor: Implement YAML-based difficulty and time system

- Added educational metadata (difficulty, time_estimate) to all module.yaml files
- Updated convert_readmes.py to read from YAML instead of hardcoded mappings
- Standardized difficulty progression: 🥷
- Fixed path resolution for YAML reading in book build process
- Eliminated duplication: single source of truth for educational metadata
- Capstone gets special ninja treatment (🥷) as beyond-expert level
This commit is contained in:
Vijay Janapa Reddi
2025-07-16 11:48:09 -04:00
parent 091069d184
commit 507cdf50f5
16 changed files with 83 additions and 45 deletions

View File

@@ -16,8 +16,12 @@ exports_to: "tinytorch.core.activations"
# File Structure - What files exist in this module
files:
dev_file: "activations_dev.py"
test_file: "tests/test_activations.py"
readme: "README.md"
tests: "inline"
# Educational Metadata
difficulty: "⭐⭐"
time_estimate: "3-4 hours"
# Components - What's implemented in this module
components: