Commit a1f83e9
committed
feat: add docgen init wizard for project scaffolding
New `docgen init` command interactively scaffolds a project with:
- docgen.yaml configuration tailored to the project
- Wrapper shell scripts (generate-all.sh, compose.sh, etc.)
- Directory structure (narration/, audio/, animations/, terminal/, recordings/)
- Starter narration files for each segment
- Optional pre-push validation hook via pre-commit
- narration/README.md with voice-first editing tips
The wizard auto-detects git root, scans for existing narration files
to infer segments, and preserves any files already present. Generated
config is immediately usable with all docgen commands.
12 unit tests cover detection, scanning, generation, and edge cases.
Made-with: Cursor1 parent 7bb55f3 commit a1f83e9
3 files changed
+672
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
42 | 59 | | |
43 | 60 | | |
44 | 61 | | |
| |||
0 commit comments