Thanks for helping improve the Wraith Protocol docs.
All TypeScript and JavaScript code fences in .mdx files are checked by:
npm run check:snippetsThe checker extracts each ts, tsx, typescript, js, and javascript fence,
writes it to a temporary file, and runs tsc --noEmit against that snippet. The
initial gate is intentionally syntax-focused because many current docs snippets
are fragments meant to illustrate API shapes rather than complete programs. It
still catches malformed TypeScript and keeps the docs ready for stricter runtime
validation over time.
Use no-check only for intentionally illustrative pseudocode:
```typescript no-check
// Pseudocode that is not copy-paste runnable.
```Prefer making snippets compile over opting them out.
Every .mdx page in the shipped taxonomy (root pages plus architecture/,
api-reference/, contracts/, guides/, reference/, and sdk/) must be
registered in the docs.json navigation tree, and every navigation entry must
resolve to a real file. This is enforced by:
npm run check:nav-coverageThe checker (scripts/check-nav-coverage.mjs) scans for .mdx files that are
missing from docs.json and for nav entries that point at files that no longer
exist. Run it after adding, renaming, or removing a page:
node scripts/check-nav-coverage.mjsNote: docs.json is strict JSON — do not add // comments to it, the Mintlify
CLI rejects them. Keep this file comment-free.
Every pull request runs the snippet checker and the nav coverage check through GitHub Actions. A separate non-blocking Stellar testnet job is reserved for end-to-end snippet validation that depends on network availability.