Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Documentation Approach

Goal

Keep docs source-first and easy to scan.

Docs should explain:

  • Where the source of truth lives
  • Which rules to follow
  • Which workflows to run

Project maintenance split:

  • mise owns named project workflows and low-level tool commands (prepare, tests, builds, codegen, Fallow, deployment artifacts, etc.).
  • hk owns file-scoped quality orchestration for hooks and fast local format/lint/typecheck (hk check, hk fix).
  • Project quality docs should point agents and contributors to hk check for validation and hk fix for auto-fixable issues. Use lower-level mise, nub, vp, or tool-specific commands only when a doc is about that specific subsystem or a narrower task.

Docs should avoid duplicating large code blocks that are already clear in source files.

Project Tooling

See docs/tooling.md for the current Vite+ / mise / hk split, known Vite+ alias warnings, hk builtin usage, and Fallow integration details.

Standard Structure

Use this structure for new docs and refactors:

  1. Overview: short problem and scope.
  2. Read Source First: table of key files and why each one matters.
  3. Rules: concise policy bullets.
  4. Workflows: step-by-step tasks for common changes.
  5. Edge Cases: rare exceptions and anti-patterns.

Writing Rules

  • Prefer file pointers over long snippets.
  • Keep snippets short and only for API shape or tricky details.
  • If a snippet exceeds ~10 lines, replace it with source references.
  • Use exact paths so contributors can open files quickly.
  • Keep guidance actionable and tied to existing project conventions.
  • Docs reflect current state only. No version history, migration narratives, "not yet wired in," or speculative "could replace…" remarks. If code changed, rewrite the doc to match — don't annotate the delta.

Update Policy

When code changes, update docs by:

  1. Updating file pointers first.
  2. Updating rules second.
  3. Adding examples only when source files are not enough.

If a doc drifts from source, source wins. Update the doc to match code.