Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Example snapshots

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.

Source layout

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 → next fromDir.
  • Per-chapter separate git remotes are not supported (one source.repository per 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/.