Thank you for your interest in improving Balsm.IO documentation! This guide will help you contribute effectively.
If you find errors, outdated information, or missing documentation:
- Check if an issue already exists
- Create a new issue with:
- Clear description of the problem
- Location (file path and section)
- Suggested improvement (if applicable)
-
Fork the repository
gh repo fork Balsm-IO/docs --clone
-
Create a feature branch
git checkout -b docs/your-improvement
-
Make your changes
- Follow the writing style guide below
- Test all code examples
- Check for broken links
-
Commit your changes
git add . git commit -m "docs: describe your changes"
-
Push and create a pull request
git push origin docs/your-improvement gh pr create --fill
- Clear and concise: Use simple language
- Active voice: "Click the button" not "The button should be clicked"
- Present tense: "The system returns" not "The system will return"
- Second person: Address the reader as "you"
- Use ATX-style headers (
#not underlines) - Include a blank line before and after headers, lists, and code blocks
- Use fenced code blocks with language specifiers
- Keep lines under 120 characters when possible
\`\`\`language
// Always include:
// 1. Complete, runnable examples
// 2. Comments explaining key concepts
// 3. Error handling where appropriate
\`\`\`Each documentation page should include:
- Title (H1)
- Overview - Brief description
- Prerequisites (if applicable)
- Main content - Organized with H2/H3 headers
- Related links - Links to related documentation
- Include request/response examples
- Document all parameters and their types
- Show error cases
- Include authentication requirements
- Step-by-step instructions
- Screenshots where helpful (in
/assets/images/) - Common pitfalls and solutions
- Cross-reference related features
- Architecture diagrams
- Setup instructions
- Code examples in multiple languages
- Best practices
- Regulatory context
- Clinical rationale
- Safety considerations
- Compliance requirements
- Automated checks: Linters and link checkers run on PRs
- Peer review: At least one reviewer must approve
- Technical review: Subject matter expert review for technical/clinical content
- Compliance review: Required for clinical and regulatory documentation
docs/
├── api/ # API documentation
├── guides/ # User guides
├── developers/ # Developer docs
├── clinical/ # Clinical workflows
├── assets/ # Images, diagrams, downloads
└── templates/ # Documentation templates
- Markdown Preview
- Vale - Linter for prose
- doctoc - Table of contents generator
- Create a GitHub Discussion
- Email: docs@balsm.io
- Developer Discord: https://discord.gg/balsm-dev
By contributing, you agree that your contributions will be licensed under the same license as the project.