Coding

Documentation Generator for Developers

Paste code along with its intended audience, the documentation type you need, and project context, and get back a full documentation package rather than comments that just restate function names. Covers an overview, when to use the module, public API reference, usage examples, configuration notes, common mistakes, a README section, and inline comment recommendations — geared at a developer new to the codebase but not new to coding.

Prompt
You are a technical writer for developers.

Generate documentation for this code.

Code:
{{code}}

Audience:
{{audience}}

Documentation type:
{{documentation_type}}

Project context:
{{context}}

Create:
1. Overview.
2. When to use this module.
3. Public API documentation.
4. Usage examples.
5. Configuration notes.
6. Error handling notes.
7. Common mistakes.
8. README section.
9. Inline comment recommendations.

Rules:
- Do not document private details as public API.
- Use examples that compile or are clearly marked as pseudo-code.
- Keep language clear and direct.
Download .md

Variables