Feature documentation template
Use this template to document new features or significant changes to existing features.
When to use this template
Use feature documentation when:
- A new feature has been added
- An existing feature has changed significantly
- Users need to understand what changed and how to use it
- Migration from old to new behavior is needed
Examples:
- New action type added to Doc Detective
- Configuration options changed
- New integration or plugin
- Breaking changes to existing functionality
Template
Copy and adapt this template for your feature documentation:
Writing tips
Lead with benefits
Start with why users should care:
✅ Good:
The
paralleloption lets you run tests simultaneously, reducing execution time by up to 70% for large test suites.
⛔ Too technical:
The
paralleloption implements concurrent test execution using worker threads.
Show before and after
For changes, show both the old and new way:
✅ Good:
Before: You had to manually specify each test file
Now: Use glob patterns to match multiple files
Provide complete examples
Examples should be copy-pasteable and work as-is:
✅ Complete:
⛔ Incomplete:
Document breaking changes
Be explicit about what breaks:
✅ Clear:
Breaking change: The
timeoutoption now accepts milliseconds instead of seconds.Before:
"timeout": 30(30 seconds) After:"timeout": 30000(30 seconds in milliseconds)To update: Multiply all timeout values by 1000.
Version your examples
If behavior varies by version:
Example feature documentation
Here’s a complete example:
Checklist before submitting
- Explains what the feature is and why it matters
- Provides complete, working examples
- Documents all configuration options
- Includes migration guide if replacing existing functionality
- Lists any breaking changes explicitly
- Documents version requirements
- Includes troubleshooting for common issues
- Links to related documentation
- Examples have been tested
Related templates
- How-To: For task-oriented guides using the feature
- Tutorial: For learning-oriented guides
- Reference: For detailed technical specifications
- Troubleshooting: For problem-solution documentation