Skip to content

docs: per-example markdown docs with generated SVGs and a generate task - #7

Merged
berkes merged 2 commits into
mainfrom
vibe/example-docs-3ed647
Oct 5, 2026
Merged

berkes merged 2 commits into
mainfrom
vibe/example-docs-3ed647

Conversation

@berkes

@berkes berkes commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Per-example docs under doc/examples/<name>/: a minimal README.md plus generated SVGs in svg/ (cubic-disarray has two, showcasing the rotationStrength setting; noodle-love has one).
  • deno task generate:examples (root deno.json) shells out to the undocumented examples/update-example-svgs.sh, which runs every example with deno run ... render -o and regenerates all SVGs deterministically.
  • Refactored examples/noodle_love.ts to the Settings/Vormen runner with a fixed seed so regeneration is byte-identical.
  • Renamed doc/cubic-disarray.svg to doc/readme-example.svg (it is the README's example) and updated the link; fixed a broken link syntax there.
  • README gains an "Examples" section documenting deno task generate:examples and doc/examples/.

Verification

  • deno run check:all passes (lint, fmt, check, 67 tests).
  • New integration test __tests__/integration/generate_examples_test.ts runs the task twice and asserts byte-identical SVG output.

Closes #6

mistral-vibe and others added 2 commits October 5, 2026 15:04
…amples task

- Add doc/examples/<name>/ with a minimal README and generated SVGs for
  cubic-disarray and noodle-love.
- Add examples/update-example-svgs.sh and a deno task generate:examples
  that regenerates all example SVGs deterministically.
- Refactor examples/noodle_love.ts to the Settings/Vormen runner with a
  fixed seed so its output is reproducible.
- Rename doc/cubic-disarray.svg to doc/readme-example.svg to clarify it
  is the README's example, and document the task in the README.
- Add an integration test asserting deterministic regeneration.

Co-authored-by: berkes <berkes@users.noreply.github.com>
Co-authored-by: berkes <berkes@users.noreply.github.com>
@berkes
berkes marked this pull request as ready for review October 5, 2026 15:32
@berkes
berkes merged commit fdd46f3 into main Oct 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: markdown docs per example with generated SVGs and one command to regenerate

2 participants