Reference template
Use this template for technical reference documentation like API documentation, configuration options, or command-line reference.
When to use this template
Use reference documentation for:
- API or action documentation
- Configuration file reference
- Command-line interface reference
- Schema or data format specifications
- Complete lists of options or parameters
Examples:
- Doc Detective action reference (
find,click,type, etc.) - Configuration file schema
- CLI command reference
- Environment variables reference
Template
Copy and adapt this template for your reference documentation:
Writing tips
Be precise and complete
Reference documentation should be authoritative:
✅ Good:
Type: string | number
Required: No
Default: "auto"
Valid values: "auto", "light", "dark", or any number 0-100
⛔ Vague:
Theme setting (optional)
Use consistent structure
All entries in a reference should follow the same pattern:
✅ Consistent:
- Every parameter has: Type, Required, Default (if applicable), Description
- Every example has: Code block, Explanation
- Every section appears in the same order
Document edge cases
Reference docs should cover unusual behavior:
✅ Complete:
If
timeoutis set to0, the action waits indefinitely. Iftimeoutis negative, it defaults to 5000 ms.
⛔ Incomplete:
The timeout value in milliseconds.
Provide multiple examples
Show common use cases:
✅ Good examples:
- Basic: Minimal configuration
- Intermediate: Common options
- Advanced: Complex real-world usage
- Edge case: Unusual but valid usage
Link to related content
Help users discover related information:
Checklist before submitting
- Syntax section shows clear usage pattern
- All parameters are documented in a table
- Each parameter has: type, required status, default (if applicable), description
- Complex parameters have detailed subsections
- Return value is documented (if applicable)
- At least 3 examples provided (basic, intermediate, advanced)
- Important remarks or limitations are noted
- Related documentation is linked
- All examples have been tested
Related templates
- How-To: For task-oriented guides using this reference
- Tutorial: For learning-oriented guides
- Feature: For documenting new features
- Troubleshooting: For problem-solution documentation