Documentation Maintenance
This site should stay close to the code. The riskiest pages are command reference, keybindings, and config reference because they mirror Rust definitions.
Source of truth
Section titled “Source of truth”| Documentation page | Code source |
|---|---|
| CLI Reference | src/cli.rs |
| Keybindings | src/tui/event.rs, src/app.rs, src/commands/copy.rs |
| Config File | crates/sivtr-core/src/config/mod.rs |
| Session Model | crates/sivtr-core/src/session/entry.rs |
| Architecture | workspace layout and crates/sivtr-core/src/lib.rs |
Update checklist
Section titled “Update checklist”When changing the CLI:
- Update clap help in
src/cli.rs. - Update CLI Reference.
- Add or update examples in usage pages.
- Run the docs build.
When changing TUI keys:
- Update Keybindings.
- Update task pages that mention the changed keys.
- Check the quickstart still works.
When changing config:
- Update Config File.
- Update Configuration.
- Make sure
sivtr config showoutput still matches the docs.
Build locally
Section titled “Build locally”From docs-site/:
npm installnpm run buildnpm run devPublish
Section titled “Publish”The generated site is static. Any static host works:
- GitHub Pages;
- Cloudflare Pages;
- Vercel;
- Netlify;
- a plain static file server.
The build output is:
docs-site/dist/