Remove demo and book commands from CLI

Students can run demos directly with Python, and developers can
run jupyter-book directly. The CLI wrappers don't add value.

Changes:
- Move demo.py and book.py to _archived/
- Remove from main.py command registry
- Remove from __init__.py imports
- Update test expectations (47 tests passing)
- Update archived README with removal rationale

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vijay Janapa Reddi
2025-11-29 11:19:30 -05:00
parent 73c757c88c
commit 63e6b282be
9 changed files with 26 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
{
"github_username": "profvjreddi",
"joined_at": "2025-11-28T21:52:09.785437",
"country": "United States",
"institution": "Harvard University",
"profile_url": "https://tinytorch.ai/community/profvjreddi",
"last_synced": null
}

12
.tinytorch/config.json Normal file
View File

@@ -0,0 +1,12 @@
{
"website": {
"base_url": "https://tinytorch.ai",
"community_map_url": "https://tinytorch.ai/community",
"api_url": null,
"enabled": false
},
"local": {
"enabled": true,
"auto_sync": false
}
}

View File

@@ -70,8 +70,8 @@ class TestCommandExecution:
@pytest.mark.parametrize("command", [
'setup', 'system', 'module', 'src', 'package', 'nbgrader',
'milestones', 'leaderboard', 'olympics',
'benchmark', 'community', 'export', 'test', 'book',
'grade', 'demo', 'logo'
'benchmark', 'community', 'export', 'test',
'grade', 'logo'
])
def test_command_help_works(self, command):
"""Test that each command's help can be displayed."""

View File

@@ -12,7 +12,6 @@ from .test import TestCommand
from .export import ExportCommand
from .src import SrcCommand
from .nbgrader import NBGraderCommand
from .book import BookCommand
from .benchmark import BenchmarkCommand
from .community import CommunityCommand
@@ -28,7 +27,6 @@ __all__ = [
'ExportCommand',
'SrcCommand',
'NBGraderCommand',
'BookCommand',
'BenchmarkCommand',
'CommunityCommand',
# Command groups

View File

@@ -9,6 +9,8 @@ These command files are no longer top-level commands but are kept for reference.
- `notebooks.py` - Deprecated notebooks command
- `status.py` - Old status command (functionality moved to module workflow)
- `checkpoint.py` - Old checkpoint tracking (superseded by milestones command)
- `demo.py` - Demo runner (students can run demos directly with Python)
- `book.py` - Jupyter Book builder (developers can run jupyter-book directly)
## Note

View File

@@ -32,9 +32,7 @@ from .commands.system import SystemCommand
from .commands.module import ModuleWorkflowCommand
from .commands.package import PackageCommand
from .commands.nbgrader import NBGraderCommand
from .commands.book import BookCommand
from .commands.grade import GradeCommand
from .commands.demo import DemoCommand
from .commands.logo import LogoCommand
from .commands.milestone import MilestoneCommand
from .commands.leaderboard import LeaderboardCommand
@@ -83,9 +81,7 @@ class TinyTorchCLI:
# Shortcuts
'export': ExportCommand,
'test': TestCommand,
'book': BookCommand,
'grade': GradeCommand,
'demo': DemoCommand,
'logo': LogoCommand,
}
@@ -109,9 +105,7 @@ Command Groups:
Convenience Shortcuts:
export Quick export (alias for: tito module export)
test Quick test (alias for: tito module test)
book Build Jupyter Book documentation
grade Simplified grading interface (wraps NBGrader)
demo Run capability demos (show what you've built!)
Getting Started:
tito setup First-time environment setup
@@ -220,8 +214,8 @@ Tracking Progress:
student_workflow = ['module', 'milestones']
community = ['leaderboard', 'olympics', 'community']
developer = ['system', 'package', 'nbgrader', 'src']
shortcuts = ['export', 'test', 'book', 'demo']
other = ['benchmark', 'grade', 'logo']
shortcuts = ['export', 'test', 'grade']
other = ['benchmark', 'logo']
help_text = "[bold]Essential Commands:[/bold]\n"
for cmd in essential: