Documentation Workflow Guidelines
This guide outlines the recommended workflow for updating, creating, and maintaining documentation in the Comserv system.
1. Identify Documentation Needs
First, identify what documentation needs to be updated or created:
- Review existing documentation to identify gaps or outdated information
- Gather requirements for new features that need documentation
- Prioritize updates based on user needs and feature importance
2. Update or Create Documentation Files
For each documentation item:
- Locate the appropriate template file in
/comserv/Comserv/root/Documentation/
- Create new files if needed using the existing format (TT template files)
- Update content with clear, concise information
- Include examples where appropriate
- Add cross-references to related documentation
For example, if updating the log form functionality:
- Update or create
/comserv/Comserv/root/Documentation/log_system.tt
- Include details about the new project selection feature
- Add screenshots or code examples
3. Migrate Documentation to the New Format
If migrating from an older format:
- Extract relevant content from the old documentation
- Restructure according to the new documentation template format
- Update terminology to be consistent with the current system
- Enhance with new information about recent features
- Verify links and cross-references work in the new structure
4. Prepare for Git Commit
Before committing:
- Review all changes to ensure accuracy and completeness
- Test documentation links to verify they work
- Check for formatting issues or inconsistencies
- Validate any code examples included in the documentation
5. Update the JSON Tracking File
After preparing your documentation but before committing:
- Open the completed_items.json file:
/comserv/Comserv/root/Documentation/completed_items.json
- Add a new entry for each significant documentation update:
{
"item": "Updated Log Form Documentation - Added project selection details",
"status": "completed",
"date_created": "YYYY-MM-DD",
"date_completed": "YYYY-MM-DD"
}
- Include specific details about what was updated
- Use consistent formatting for entries
- Add new fields if needed to capture additional information about the update (e.g., related_features, affected_modules, etc.)
6. Create Git Commit
Follow the Git workflow guidelines:
- Stage your changes:
git add /comserv/Comserv/root/Documentation/your_updated_file.tt
git add /comserv/Comserv/root/Documentation/completed_items.json
- Create a descriptive commit message:
git commit -m "Documentation: Updated log form with project selection details"
- Note the commit hash after committing
7. Update JSON with Commit Information
After committing:
- Open the completed_items.json file again
- Add the commit hash to your recent entries:
{
"item": "Updated Log Form Documentation - Added project selection details",
"status": "completed",
"date_created": "YYYY-MM-DD",
"date_completed": "YYYY-MM-DD",
"commit": "a1b2c3d4e5f6"
}
- Commit this update with a simple message:
git add /comserv/Comserv/root/Documentation/completed_items.json
git commit -m "Update completed_items.json with commit reference"
8. Push Changes to Repository
Finally:
- Push your changes to the appropriate branch:
git push origin your-branch-name
- Create a pull request if using a branch workflow
- Notify team members about the documentation updates
Benefits of This Workflow
This workflow ensures:
- Documentation stays current with system changes
- Changes are tracked in the JSON file for easy reference
- Commit information is preserved for traceability
- Users can see recent updates in the documentation center
- The application start date is available for reference
By following this structured approach, you'll maintain high-quality documentation that evolves with your system while keeping a clear record of all changes.