mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-11-09 10:39:41 -06:00
13 lines
363 B
Python
13 lines
363 B
Python
#!/usr/bin/env python3
|
|
"""Quarto hook for chapter concept-map viewers; no model calls at render time."""
|
|
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
ROOT = Path(__file__).resolve().parents[3]
|
|
sys.path.insert(0, str(ROOT / "binder"))
|
|
from cli.commands.concepts import run
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(0 if run(ROOT, ["build", *sys.argv[1:]]) else 1)
|