Documentation Templates¶
Reusable templates for creating consistent architecture documentation
Overview¶
This directory contains templates for creating new architecture documentation. Using these templates ensures consistency across all documentation and makes it easier for readers to find information.
Available Templates¶
| Template | Purpose | Use When |
|---|---|---|
| hub-template.md | Hub index page | Creating a new documentation hub |
| document-template.md | Standard document | Documenting a component, service, or feature |
| dataflow-template.md | End-to-end trace | Documenting a complete data flow through the system |
How to Use¶
Creating a New Hub¶
- Copy
hub-template.mdtodocs/architecture/{hub-name}/README.md - Replace all
{placeholder}values - Add the hub to the main index at
docs/architecture/README.md
Creating a New Document¶
- Copy
document-template.mdto the appropriate hub directory - Replace all
{placeholder}values - Add the document to the hub's README
Creating a Dataflow Document¶
- Copy
dataflow-template.mdtodocs/architecture/dataflows/ - Replace all
{placeholder}values - Add the dataflow to the dataflows hub README
Template Conventions¶
Placeholders¶
All placeholders use curly braces: {Placeholder Name}
Replace these with actual content before committing.
Code Citations¶
Templates include examples of proper code citation format:
- Single line:
path/to/file.py:67 - Range:
path/to/file.py:67-89
Diagrams¶
Templates include Mermaid diagram examples. Customize these for your specific documentation needs.
Validation¶
After creating documentation from templates, validate your work:
Related¶
- STANDARDS.md - Documentation standards and formatting rules
- README.md - Main architecture documentation index