How to turn a gap-backlog route into an accurate, on-brand, SME-signed Product page.Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Source of truth is shipped code in
src/. Never invent clinical, compliance,
or billing behavior. If behavior is not unambiguous from code, leave a
specific SME REVIEW warning — do not guess. The phase2b: true frontmatter
marker is permanent: it must never be removed to bypass the sign-off gate.
Removing it is a policy violation and is detectable in git history.The pipeline
Scaffold
Run
npm run docs:gapfill --core=<core> --limit=<n> to create safe
Draft/hidden stubs in the holding nav group.Draft from code
For each stub, resolve its route via
src/platform/navigation/route-labels.ts
to the screen component in src/. Read the component and the feature module
it calls. Fill the template using ONLY observable behavior. Record every
src/ file you used in the “Documentation sources” accordion.Flag ambiguity
Anything not unambiguous from code stays a specific
<Warning> SME-review
callout naming the open question.Gate
Run
npm run docs:authoring-status -- --check. It must pass: every
Phase 2b page is tag: "Draft" + hidden: true with citations until signed.Canonical page template
Copy this exactly. It is the only approved structure; the spacing is part of the contract — see MDX safety.Frontmatter rules
- Seven keys, in the order shown.
titledouble-quoted;description155 chars or fewer, no spec numbers (PM-13,(PF-51)). audienceis authoritative — it drives the sidebar split (User Guides / Admin Guides / Reference & Overview) viadocs:nav-regroup. Use"admin"for settings/config/rules/templates/policies/wizard/ setup/admin/import/permissions screens; else"user".tag: "Draft"+hidden: trueare removed only at sign-off.phase2b: trueis permanent — never remove it to bypass the gate (detectable in git history; a policy violation).
MDX safety (build-breaking)
Mintlify compiles every.md page as MDX. A compile failure makes
the page silently vanish from the build and surfaces as “referenced in
docs.json but file does not exist”. Non-negotiable:
- Blank line after every
import.import PhiDisclaimer ...;MUST be followed by a blank line before<PhiDisclaimer />. With no blank line MDX parses the JSX as a JS statement and the whole page fails (Unexpected ExpressionStatement ... only import/exports are supported). This one mistake broke 310 pages once. - No raw
<or{in prose.<before a digit/space/punctuation ((<25%),value < 0) reads as a malformed JSX tag. Use<, reword (“below 25%”), or wrap in`code`. Same for{. - No body
#H1. Mintlify renders the frontmattertitleas the page hero; a body H1 duplicates it. The body starts at the intro line. - Self-closing components keep the space:
<PhiDisclaimer />.
Citations the gate parses
The “Documentation sources” accordion must contain bare repo-relative paths, one per line — the gate regex is^src/\S+\.\w+$:
- Component: \src/Foo.tsx`, - src/Foo.tsx (line 42)) do **not** count; a live page with zero parsed citations is a gate violation. Always include the route file plus every src/` file you actually opened.
Sign-off transform (owner-gated)
A page goes live only after the owner verifies it against the running product: remove the<Warning> SME block; delete the tag: "Draft" and
hidden: true frontmatter lines (keep phase2b: true and audience:);
add the path to scripts/docs/phase2b-signoff.yaml; scrub any residual
literal SME REVIEW left in body prose; re-run
docs:authoring-status -- --check (0 violations) and docs:parity-audit.
Reviewers cross-check against the relevant specs/<core> user story at
review time — specs are review input only, never cited in the page.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Related
Governance & parity
Where the gap backlog and parity audit governance lives.
AI platform parity
Platform parity context for documentation coverage.