Appearance
Repository Documentation Standards
Goal: Establish consistent documentation standards for all code repositories using standardized templates for README, OVERVIEW, BUILD, and RUNBOOK files.
Resources:
Steps
- Accomplish the goal Identify Required Documentation
- Accomplish the goal Implement Documentation Templates
- Accomplish the goal Customize Template Content
- Accomplish the goal Commit and Review Documentation
- Done!
Identify Required Documentation
- Determine which documentation templates are needed for your repository based on its purpose:
- README.md: Required for all repositories - OVERVIEW.md: Required for service/product repositories - BUILD.md: Required for repositories that need build instructions - RUNBOOK.md: Required for services with operational procedures
- For each template, identify the key information that needs to be included based on the repository's purpose and audience.
- Done!
Implement Documentation Templates
- Download or copy the appropriate templates from the
/devops/repo-documentation/templates/
directory:- README-template.md: Basic repository information and navigation - OVERVIEW-template.md: System architecture and design decisions - BUILD-template.md: Build and test instructions - RUNBOOK-template.md: Operational procedures and troubleshooting
- Place template files in your repository's root directory, renaming them to remove the "-template" suffix.
- Done!
Customize Template Content
- For the README.md file:
- Update the project name and description - List key features and capabilities - Add specific getting started instructions - Update links to other documentation files - Add repository-specific contribution guidelines
- For the OVERVIEW.md file (if applicable):
- Define the system purpose and scope - Document the architecture with diagrams - List and describe all major components - Document data flow and external dependencies - Explain key design decisions and trade-offs
- For the BUILD.md file (if applicable):
- Document all prerequisites and environment setup - Provide step-by-step build instructions - Include test execution commands - Document deployment procedures - Add troubleshooting for common build issues
- For the RUNBOOK.md file (if applicable):
- Document key service metrics and normal ranges - Create alerts with severity levels and remediation steps - Document common operational procedures - Include disaster recovery processes - Add appropriate contact information
- Done!
Commit and Review Documentation
- Review all documentation files to ensure they are complete and accurate.
- Commit the documentation files with your code using a descriptive commit message.
- Create a pull request that includes the documentation files.
- Request review from appropriate team members who can verify the documentation accuracy.
- Address any feedback or suggestions from the review process.
- Done!