Documentation Guidelines
This page contains the comprehensive documentation guidelines for the Rummage MTG Commander game engine built with Bevy 0.15.x.
Documentation Structure
The documentation is organized into the following major sections:
- Commander Rules - Implementation of MTG Commander format rules and mechanics
- Game UI - User interface systems and components
- Networking - Multiplayer functionality using bevy_replicon
Contributing to Documentation
When contributing to the documentation, please follow these guidelines:
Document Structure
Each document should have:
- A clear, descriptive title
- A brief introduction explaining the document's purpose
- A table of contents for documents longer than a few paragraphs
- Properly nested headings (H1 -> H2 -> H3)
- Code examples where appropriate
- Cross-references to related documents
- Implementation status indicators where appropriate
Style Guide
- Use American English spelling and grammar
- Write in a clear, concise style
- Use active voice where possible
- Keep paragraphs focused on a single topic
- Use proper Markdown formatting:
#
for headings (not underlines)- Backticks for code snippets
- Triple backticks for code blocks with language identifier
- Dashes for unordered lists
- Numbers for ordered lists
Code Examples
Include meaningful code examples that:
- Use non-deprecated Bevy 0.15.x APIs
- Demonstrate the concept being explained
- Are syntactically correct
- Include comments for complex code
- Use Rust syntax highlighting with ````rust`
Implementation Status
Use the following indicators to mark implementation status:
- ✅ Implemented and tested
- 🔄 In progress
- ⚠️ Planned but not yet implemented
Building the Documentation
We use mdbook
to build the documentation. To get started:
-
Install required tools:
make install-tools
-
Build the documentation:
make build
-
View the documentation locally:
make serve
Then open your browser to http://localhost:3000
Documentation Maintenance
Use the following make commands for documentation maintenance:
make lint
- Check for style issuesmake toc
- Generate table of contentsmake check
- Check for broken linksmake validate
- Validate documentation structuremake update-dates
- Update last modified dates
Questions?
If you have questions about the documentation, please contact the documentation team or open an issue in the project repository.