Contributing to the documentation
The documentation is a VitePress project. Keep explanations task-oriented and derive defaults, limits, field names, and API behavior from the adjacent horizon-rs source.
Preview changes
bash
npm install
npm run docs:devBefore opening a pull request:
bash
npm run docs:buildAlso check that every page intended for navigation appears in docs/.vitepress/config.mts and that relative links resolve from the source page.
Writing conventions
- Write in English and use sentence-style headings.
- Refer to the product as Elura, a process as Gateway or World, and protocol frames/routes in code formatting.
- Prefer runnable commands and source-backed examples.
- Distinguish runtime behavior from generated-application behavior.
- Do not document secrets, real endpoints, or organization-specific credentials.
- Call out
0.xcompatibility risks when showing version-sensitive APIs.
Keeping source and docs aligned
Review the documentation when changing:
- public configuration structs or defaults;
- protocol constants, frame validation, or reserved routes;
- CLI targets and generated templates;
- feature flags or workspace crates;
- admin endpoints, bodies, authentication, or status codes;
- deployment manifests, health behavior, or metrics;
- adapters and provider capabilities.
Item-level API documentation belongs in Rustdoc. This site should explain how components fit together, how to operate them, and which trade-offs an application must make.