Contributing
The framework source and this documentation site live in separate repositories.
| Project | Repository |
|---|---|
| Scaffolder and runtime | Sogody/experiment-framework |
| Documentation site | Aldisogody/v2-docs-for-devs |
Documentation workflow
bash
cd v2-framework
nvm use 24
pnpm install
pnpm docs:devWhen adding a page:
- Create the Markdown file under
docs/. - Add it to
docs/.vitepress/config.mts. - Link it from a related page.
- Run
pnpm docs:build. - Inspect the rendered page when the change affects navigation, code blocks, or layout.
Keep examples aligned with current source in experiment-framework, especially:
cli.jsfor interactive defaults.template/for generated files.runtime/framework.jsfor API behavior.bin/for generated commands.lib/markets.jsfor E2E market choices.
Scaffolder workflow
bash
cd experiment-framework
nvm use 24
pnpm install
pnpm testThe framework uses ESM, Vitest, node-plop, and two-space indentation. Shared generator logic belongs in focused modules under lib/ and generator/.
Template changes
Update the source template rather than a generated sample:
- Generated files:
template/ - File selection:
lib/scaffold-plan.js - Plop adapter:
generator/actions.js
Add or update tests that generate real files in a temporary directory. Run the full suite before opening a pull request.
Documentation accuracy checklist
- CLI defaults match
cli.js. - File trees match scaffold tests and templates.
- Runtime signatures match
runtime/framework.js. - Market codes and URLs match the current market references.
- Examples avoid legacy package names and copied runtime files.
- AI instruction files remain opt-in and their paths match the init binaries.
- Commands are run from the correct repository or generated project root.
Before opening a pull request
Use a Conventional Commit title such as docs: update live injection guide or fix: correct scaffold output. Include the validation commands you ran and call out any behavior that exists on main but is not yet published.