Simplify interactive elements to match usage paths style - clean text links only

This commit is contained in:
Vijay Janapa Reddi
2025-07-16 01:03:17 -04:00
parent 8a292234c3
commit 7f79425b90
15 changed files with 31 additions and 106 deletions

View File

@@ -186,14 +186,9 @@ The skills you learn here - the development workflow, testing patterns, and code
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/01_setup/setup_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/01_setup/setup_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/01_setup/setup_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/01_setup/setup_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/01_setup/setup_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -233,14 +233,9 @@ Take your time, test thoroughly, and enjoy building something that really works!
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/02_tensor/tensor_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/02_tensor/tensor_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/02_tensor/tensor_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/02_tensor/tensor_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/02_tensor/tensor_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -277,14 +277,9 @@ You've mastered this module when:
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/03_activations/activations_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/03_activations/activations_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/03_activations/activations_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/03_activations/activations_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/03_activations/activations_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -237,14 +237,9 @@ After completing this module, you're ready for:
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/04_layers/layers_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/04_layers/layers_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/04_layers/layers_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/04_layers/layers_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/04_layers/layers_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -301,14 +301,9 @@ Input → Dense(784,128) → ReLU → Dense(128,64) → ReLU → Dense(64,10)
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/05_networks/networks_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/05_networks/networks_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/05_networks/networks_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/05_networks/networks_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/05_networks/networks_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -95,14 +95,9 @@ python -m pytest tests/test_cnn.py -v
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/06_cnn/cnn_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/06_cnn/cnn_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/06_cnn/cnn_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/06_cnn/cnn_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/06_cnn/cnn_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -339,14 +339,9 @@ Focus on clean interfaces, efficient implementation, and systems thinking! 🔥
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/07_dataloader/dataloader_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/07_dataloader/dataloader_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/07_dataloader/dataloader_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/07_dataloader/dataloader_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/07_dataloader/dataloader_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -317,14 +317,9 @@ This module transforms TinyTorch from a static computation library into a dynami
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/08_autograd/autograd_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/08_autograd/autograd_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/08_autograd/autograd_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/08_autograd/autograd_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/08_autograd/autograd_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -232,14 +232,9 @@ Your optimizers will be the engine that transforms gradients into intelligence!
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/09_optimizers/optimizers_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/09_optimizers/optimizers_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/09_optimizers/optimizers_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/09_optimizers/optimizers_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/09_optimizers/optimizers_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -305,14 +305,9 @@ history = trainer.fit(housing_loader, epochs=100)
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/10_training/training_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/10_training/training_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/10_training/training_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/10_training/training_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/10_training/training_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -203,14 +203,9 @@ This module bridges the gap between research-quality models and production-ready
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/11_compression/compression_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/11_compression/compression_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/11_compression/compression_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/11_compression/compression_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/11_compression/compression_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -173,14 +173,9 @@ By the end, you'll think like a **performance engineer**, not just a machine lea
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/12_kernels/kernels_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/12_kernels/kernels_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/12_kernels/kernels_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/12_kernels/kernels_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/12_kernels/kernels_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -182,14 +182,9 @@ By the end of this module, you should be able to:
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/13_benchmarking/benchmarking_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/13_benchmarking/benchmarking_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/13_benchmarking/benchmarking_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/13_benchmarking/benchmarking_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/13_benchmarking/benchmarking_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -352,14 +352,9 @@ This module represents the culmination of your TinyTorch journey - from basic te
## 🚀 Ready to Build?
```{admonition} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/14_mlops/mlops_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/14_mlops/mlops_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/14_mlops/mlops_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/14_mlops/mlops_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/14_mlops/mlops_dev.ipynb)** *(Google's cloud environment)*
---

View File

@@ -83,20 +83,15 @@ def enhance_content_for_web(content: str, module_name: str, module_num: int) ->
"""
# Add interactive elements and navigation links at the end
# Add simple interactive links and navigation at the end
interactive_elements = f"""
---
## 🚀 Ready to Build?
```{{admonition}} Choose Your Environment
:class: tip
**Quick Start:** [🚀 Launch Builder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/{module_name}/{module_name.split('_', 1)[1]}_dev.ipynb) *(Jump directly into implementation)*
**🚀 [Launch in Binder](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/{module_name}/{module_name.split('_', 1)[1]}_dev.ipynb)** *(Live Jupyter environment)*
**Full Development:** [📓 Open Jupyter](https://mybinder.org/v2/gh/MLSysBook/TinyTorch/main?filepath=modules/source/{module_name}/{module_name.split('_', 1)[1]}_dev.ipynb) *(Complete development environment)*
**Cloud Environment:** [☁️ Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/{module_name}/{module_name.split('_', 1)[1]}_dev.ipynb) *(Google's notebook environment)*
```
**📓 [Open in Colab](https://colab.research.google.com/github/MLSysBook/TinyTorch/blob/main/modules/source/{module_name}/{module_name.split('_', 1)[1]}_dev.ipynb)** *(Google's cloud environment)*
---