demo-source/ holds the chapter snapshots for the demo course. The course config lives in packages/courses-config/demo-course. Both are normal committed trees — no nested git repos and no setup script.
Chapter snapshots live as directories inside one source repository. Each chapter’s fromDir / toDir are paths relative to that repo root (or optional source.root):
- Nested paths are allowed (
intro/start,advanced/start). - Chapters do not need to share a parent folder or chain
toDir→ nextfromDir. - Per-chapter separate git remotes are not supported (one
source.repositoryper course).
The demo is a small visual course (start/ → skeleton/ → particles/ → follow/ → glow/): a canvas particle field that ends up following the cursor. Snapshot trees nest under src/scene, src/particle, and src/pointer so chapter diffs include new folders, not only a single main.js. Chapter 1 docs is the https tutorial on the project site; later chapters keep Markdown and PDF docs in the snapshots.
LearnByDiff: Open Course prefills packages/courses-config/demo-course/.course-config/course.jsonc in Development mode.
Protocol unit tests still use packages/protocol/fixtures/.