- What comment formats does the generator recognize?
- JSDoc (/** */ with @param, @returns, @example), Python docstrings (Google style, NumPy style, reStructuredText), Go doc comments (// Package ..., // FunctionName ...), and Rust doc comments (///). TypeScript types and function signatures are parsed without any comments.
- Should documentation be generated or handwritten?
- Generated docs handle the boilerplate (parameter types, return types, existence of functions). Handwritten docs add context, motivation, and examples. Use generation for the structural scaffold, then hand-write the explanatory text. Pure generation produces accurate but often unhelpful docs.
- What makes good API documentation?
- Stripe's API docs are the gold standard: every endpoint has a one-sentence description, all parameters are documented with types and defaults, there are code examples in multiple languages, and error responses are documented alongside success responses.