Skip to main content

Documentation Lifecycle

This page defines how documentation changes should be coordinated between internal contracts and public docs.

Source Layers

  • docs/: Internal source of truth for project contracts and implementation details.
  • apps/public-docs: Public-facing documentation surface for curated guidance.
  • Standalone product docs such as apps/binpm-docs and apps/nodeup-docs: Public-facing documentation surfaces for product-specific user guidance.
Internal contracts may include repository architecture, repo-local paths, implementation details, and maintainer operations. Public documentation must translate those contracts into user-facing behavior, supported workflows, stable public interfaces, and explicitly public maintainer workflows.

Update Rules

  1. Structural repository changes must update relevant docs/project-*.md files in the same change set.
  2. When user-facing behavior, project positioning, or onboarding guidance changes, update apps/public-docs pages in the same change set as needed.
  3. Repository policy changes must be reflected in the appropriate AGENTS.md files and any affected public docs pages.
  4. Public docs must not document repository-internal implementation details unless the detail is part of a stable public interface, user-visible behavior, or explicitly public maintainer workflow.

Quality Gates

  • Run pnpm --filter public-docs test to verify broken links.
  • Keep apps/public-docs/docs.json navigation aligned with actual page IDs.
  • Use pull requests to review both internal and public documentation impacts together.