rework dev server: hmr for all courses, per-course targets, root index

- make dev serves all courses on port 1312 with marp live reload
- make dev-b/dev-c for single course on 1313/1314
- dev-kill only kills specific ports instead of all marp processes
- add generate-root-index.sh for prod build overview page
- cleanup function uses exec + trap instead of pid files
This commit is contained in:
2026-04-09 22:10:48 +02:00
parent c1277cc737
commit c57db78c52
4 changed files with 198 additions and 39 deletions

View File

@@ -35,8 +35,9 @@ build/ # Generated output (gitignored)
## Build Commands
```bash
make dev-b # Dev server 223015b (port 1311)
make dev-c # Dev server 223015c (port 1312)
make dev # Marp live server all courses (port 1312, HMR)
make dev-b # Marp live server 223015b (port 1313, HMR)
make dev-c # Marp live server 223015c (port 1314, HMR)
make build # Build all courses
make build-b # Build 223015b only
make build-c # Build 223015c only