4.7 KiB
4.7 KiB
BMAD Documentation Contribution Guidelines
Overview
This document outlines the process for contributing to the BMAD Method documentation. Following these guidelines ensures a smooth review process and maintains the high quality of our documentation.
Getting Started
Prerequisites
- GitHub account
- Basic knowledge of Markdown
- Familiarity with the BMAD Method
- Understanding of the documentation structure
Setting Up Your Environment
- Fork the BMAD Documentation repository
- Clone your fork locally
- Install dependencies:
npm install - Set up pre-commit hooks:
npm run prepare
Contribution Process
1. Find or Create an Issue
- Check existing issues in the issue tracker
- If your contribution doesn't match an existing issue, create a new one
- Wait for issue assignment or approval before starting work
2. Create a Branch
- Create a branch from
mainwith a descriptive name:git checkout -b doc/add-developer-guide - Use prefixes to indicate the type of change:
doc/for documentation additionsfix/for documentation fixesupdate/for documentation updatesreview/for review changes
3. Make Your Changes
- Follow the Style Guide
- Run automated checks locally:
npm run lint:all - Test your changes by building the documentation locally:
npm run docs:build npm run docs:serve
4. Commit Your Changes
- Use conventional commit messages:
docs(persona): add developer integration guide - Add detailed setup instructions - Include code examples - Add troubleshooting section Closes #123 - Keep commits focused and atomic
- Reference issues in commit messages
5. Submit a Pull Request
- Push your branch to your fork
- Create a pull request against the
mainbranch - Fill out the pull request template completely
- Request review from appropriate team members
- Address review feedback promptly
6. Review Process
All contributions go through a review process:
- Automated Checks: CI/CD pipeline runs linting, spelling, and link validation
- Peer Review: At least one team member reviews the content
- Technical Review: Subject matter experts verify technical accuracy
- Final Approval: Documentation maintainer approves and merges
Documentation Types
New Documentation
When creating new documentation:
- Use the appropriate template from the
templates/directory - Follow the established directory structure
- Include all required sections
- Add entry to navigation if applicable
- Create examples where appropriate
Updates to Existing Documentation
When updating existing documentation:
- Maintain the existing structure and style
- Clearly mark deprecated content
- Update related documentation as needed
- Update the "Last Updated" date
- Add changelog entry if significant
Translations
When contributing translations:
- Create files in the appropriate language directory
- Maintain the same structure as the English version
- Include language code in filename (e.g.,
quickstart.fr.md) - Update language selector in navigation
Best Practices
Content Guidelines
- Write for an international audience
- Use simple, clear language
- Provide context and examples
- Link to related documentation
- Include troubleshooting sections
- Consider the user's perspective and needs
Technical Guidelines
- Test all code examples
- Verify command outputs
- Check compatibility across environments
- Include version information
- Provide alternative approaches where applicable
Review Guidelines
- Be constructive and specific in feedback
- Suggest improvements rather than just pointing out issues
- Consider the author's intent
- Focus on content quality and accuracy
- Be timely in your reviews
Recognition
Contributors are recognized in several ways:
- Listed in the Contributors file
- Mentioned in release notes
- Acknowledged in the documentation they contributed to
Code of Conduct
All contributors must adhere to our Code of Conduct. We are committed to providing a welcoming and inclusive environment for all contributors.
Questions and Support
If you have questions about contributing:
- Join our Community Slack
- Email the documentation team at docs@bmad-method.org
- Ask in the #documentation channel on Slack
- Check the FAQ for common questions
These contribution guidelines are maintained by the BMAD Documentation Team. Last updated: Current Date.