Contributing to BLVM Documentation
Thank you for your interest in improving BLVM documentation!
Documentation Philosophy
Documentation is maintained in source repositories alongside code. This repository (blvm-docs) aggregates that documentation into a unified site.
Where to contribute:
- Component-specific documentation → Edit in the source repository (e.g.,
blvm-consensus/docs/) - Cross-cutting documentation → Edit in this repository (e.g.,
blvm-docs/src/architecture/) - Navigation structure → Edit
SUMMARY.mdin this repository
Documentation Standards
Markdown Format
- Use standard Markdown (no mdBook-specific syntax in source repos)
- Follow consistent heading hierarchy
- Use relative links for internal documentation
- Include code examples where helpful
Style Guidelines
- Clarity: Write clearly and concisely
- Completeness: Cover all important aspects
- Examples: Include practical examples
- Links: Link to related documentation
- Code: Include testable code examples where possible
File Organization
Each source repository should maintain documentation in:
repository-root/
├── README.md # High-level overview
├── docs/
│ ├── README.md # Documentation index
│ ├── architecture.md # Component architecture
│ ├── guides/ # How-to guides
│ ├── reference/ # Reference documentation
│ └── examples/ # Code examples
Contribution Workflow
For Source Repository Documentation
- Fork the source repository (e.g.,
blvm-consensus) - Make documentation improvements
- Submit a pull request to the source repository
- After merge, changes will appear in the unified documentation site (via
{{#include}}directives)
For Cross-Cutting Documentation
- Fork this repository (
blvm-docs) - Edit files in
src/directory (not in submodules) - Submit a pull request
- After merge, GitHub Actions will automatically rebuild and deploy
For Navigation Changes
- Edit
src/SUMMARY.mdto add/remove/modify navigation - Create corresponding content files if needed
- Submit a pull request
Local Testing
Before submitting changes:
-
Clone the repository:
git clone https://github.com/BTCDecoded/blvm-docs.git -
Serve locally:
mdbook serve -
Review changes at
http://localhost:3000 -
Check for broken links:
mdbook test
Review Process
- All documentation changes require review
- Maintainers will review for clarity, completeness, and accuracy
- Technical accuracy is especially important for consensus and protocol documentation
Questions?
- Open an issue for questions about documentation structure
- Ask in GitHub Discussions for general questions
- Contact maintainers for repository-specific questions
Thank you for helping improve BLVM documentation!