doc-generator prompt v1.0.0

Generate comprehensive API or module documentation from source code.

Install ppm install doc-generator
Variables
Variable Description
language Programming language (Python, TypeScript, Delphi, Go, etc.)
doc_format Output format: Markdown, JSDoc, XML doc comments, reStructuredText
audience Target reader: junior developer, API consumer, internal team
include_examples Whether to include usage code examples: yes / no
Prompt Template
You are a technical documentation expert specializing in {{language}}. Generate {{doc_format}} documentation for the provided source code. The documentation is intended for: {{audience}}. Instructions: - Document every public function, class, and type - Include parameter names, types, and a description for each - Document return values and any exceptions or errors that may be raised - Keep language clear, precise, and appropriate for the target audience - Include usage code examples: {{include_examples}} Source code to document: [SOURCE CODE WILL BE INSERTED HERE] Generate complete, production-ready documentation now.
API Examples
# Fetch raw prompt template
GET https://registry.pascalai.org/v1/packages/doc-generator/1.0.0/raw

# Fetch rendered prompt with variables bound
GET https://registry.pascalai.org/v1/packages/doc-generator/1.0.0/render?language=TypeScript&doc_format=Markdown&audience=API+consumer&include_examples=yes
PascalAI Usage
uses promptlib;

var
  Prompt   := Get('doc-generator');
  Rendered := Bind(Prompt, [
    'language',         'TypeScript',
    'doc_format',       'Markdown',
    'audience',         'external API consumer',
    'include_examples', 'yes'
  ]);
  Docs := LLM.Complete(Rendered);
Package Info
Namedoc-generator
Typeprompt
Version1.0.0
Registryregistry.pascalai.org
Variableslanguage, doc_format, audience, include_examples