Skip to content

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.

Documentation pageCode source
CLI Referencesrc/cli.rs
Keybindingssrc/tui/event.rs, src/app.rs, src/commands/copy.rs
Config Filecrates/sivtr-core/src/config/mod.rs
Session Modelcrates/sivtr-core/src/session/entry.rs
Architectureworkspace layout and crates/sivtr-core/src/lib.rs

When changing the CLI:

  1. Update clap help in src/cli.rs.
  2. Update CLI Reference.
  3. Add or update examples in usage pages.
  4. Run the docs build.

When changing TUI keys:

  1. Update Keybindings.
  2. Update task pages that mention the changed keys.
  3. Check the quickstart still works.

When changing config:

  1. Update Config File.
  2. Update Configuration.
  3. Make sure sivtr config show output still matches the docs.

From docs-site/:

Terminal window
npm install
npm run build
npm run dev

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/