Writing docs
How to write a page here — dense, cited, no slop.
The bar for this site is minimalist but important info. A person or an agent should be able to scan a page in under a minute and come away with the real thing, not filler.
The one rule
Document only what is implemented. Two ground truths:
- Shipped → Status. (Distinguish merged from live in prod.)
- Planned → tracked issues across the services. These belong on the Roadmap, clearly labelled not yet built — never in a feature page as if they exist.
If you can't confirm a capability is built, it doesn't go in a feature page.
Status badges
Every feature gets one, stated plainly in prose or a table cell:
- Live in prod — deployed and running on the Phala CVMs.
- Built · merged local — merged to a local
main, not yet pushed/deployed. Say built, not shipped. - Built · not merged — exists on a feature branch, not merged.
Voice
- Dense and concrete. Prefer a table or a tight list to a paragraph.
- Cite the source where it helps — a tracked issue or change — so a reader can verify and go deeper.
- Machine identifiers — CVM ids, env vars, endpoints, file paths — in
monospace. - No marketing adjectives in engineering pages. No invented numbers. Flag assumptions as assumptions (the GTM pages label pricing/market sizing as the model, not validated).
- No emoji in headings, no decorative gradients, no stock imagery.
Mechanics
- Pages are MDX under
content/docs/. Frontmatter needstitleanddescription. - Sidebar order and tabs live in each folder's
meta.json("root": truemakes a tab). - The trust-accent green is reserved for trust/attestation cues — use the
trust-noteblock sparingly, not as general emphasis. - Run
npm run buildbefore you commit; it must stay green.