About These Docs
About These Docs
Section titled “About These Docs”ContextBrew uses a three-system documentation architecture designed to serve different audiences with the right level of detail at the right time.
System 1: Developer Documentation (devdoc.contextbrew.dev)
Section titled “System 1: Developer Documentation (devdoc.contextbrew.dev)”Internal docs for the ContextBrew team. Requires authentication via Logto. Includes Architecture Decision Records (ADRs), operational runbooks, API references auto-generated from source code via TypeDoc, and development setup guides. This system is private and intended for engineers building and operating ContextBrew.
System 2: User Documentation (doc.contextbrew.dev)
Section titled “System 2: User Documentation (doc.contextbrew.dev)”Public documentation for ContextBrew users — the site you’re reading right now. Covers guides, tutorials, model explainers (DDD, USM, CBRL, SCM, DSM, SIM, C4, Context Map, ESDM, Decision, ABSL, ACM), CLI reference, and API documentation. Open to everyone, indexed by search engines, and searchable via Pagefind.
System 3: Project Documentation (*.docs.contextbrew.dev)
Section titled “System 3: Project Documentation (*.docs.contextbrew.dev)”Auto-generated per-project documentation. When you enable docs for your ContextBrew project, we generate comprehensive documentation from your specification models — all twelve of them (DDD, USM, CBRL, SCM, DSM, SIM, C4, Context Map, ESDM, Decision, ABSL, ACM). Each project gets its own subdomain (e.g., travel-booking.docs.contextbrew.dev) with branded documentation that reflects your project’s models, recipes, and test coverage.
How It Works
Section titled “How It Works”The spec-to-docs pipeline transforms your specification models into rendered documentation pages:
- Specification Models — You define your domain using DDD, USM, CBRL, SCM, and DSM models in ContextBrew
- Generators — Each model type has dedicated generators that produce MDX pages: domain glossaries from DDD, user story references from USM, requirement indexes from CBRL, screen maps from SCM, and schema docs from DSM
- MDX Pages — Generated content is written as MDX files with Starlight-compatible frontmatter, enabling server-side rendering and full-text search
- SSR Rendering — The System 3 Starlight site runs in SSR mode with a Node adapter, serving per-project docs on demand with project-specific branding and navigation
Contributing
Section titled “Contributing”Found an error or want to suggest an improvement? Open an issue or pull request on GitHub — docs fixes are welcome.
