docs/WRITING_GUIDE.mdx
This applies to all documentation, code comments, and design documents.
Use clear, simple language. Write short, impactful sentences. Use active voice. Focus on practical, actionable information.
Address the reader directly with "you" and "your". Support claims with data and examples when possible.
Avoid these constructions:
Avoid these words: comprehensive, delve, utilize, harness, realm, tapestry, unlock, revolutionary, groundbreaking, remarkable, pivotal This includes all simmilar verbage, clean fact-based technical explainations only.
Use code snippets sparingly to illustrate key concepts or demonstrate specific tasks:
Example:
let library = core.libraries
.create_library("Jeff's Library", None)
.await?;
rust swift typescript </CodeGroup>pub struct Sidecar {
pub id: i32,
pub content_uuid: Uuid, // FK to ContentIdentity
// Classification
pub kind: String, // "thumbnail" | "preview" | "metadata"
pub variant: String, // Size/quality variant
pub format: String, // File format
// Storage
pub rel_path: String, // Relative path to sidecar
pub source_entry_id: Option<i32>, // Reference to existing file
// Metadata
pub size: i64,
pub checksum: Option<String>,
pub status: String, // "pending" | "processing" | "ready" | "error"
pub version: i32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
You can use the <Panel> component to customize the right side panel of a page with any components that you want. If a page has a <Panel> component, any RequestExample and ResponseExample components must be inside <Panel>. The components in a <Panel> will replace a page’s table of contents.
<Panel> <Info>Pin info to the side panel. Or add any other component.</Info> </Panel>Use tooltips to provide additional context or definitions when a user hovers over a string of text. Tooltips can include optional call-to-action links. Example: API documentation helps developers understand how to integrate with your service.
<Tooltip tip="Application Programming Interface: a set of protocols for software applications to communicate." cta="Read our API guide" href="/api-reference"
API
Your final documentation should: