📚 Contributing to Documentation¶
We welcome contributions to the FusionBench documentation! This guide will help you understand how to contribute effectively to our documentation built with MkDocs, Material theme, and mkdocstrings.
🚀 Quick Start¶
Prerequisites¶
- Python 3.10 or later
- Git
Setting Up Local Development¶
-
Clone the repository:
-
Install documentation dependencies:
-
Serve the documentation locally:
The documentation will be available at
http://localhost:8000
with live reload enabled.For external access (useful for containers or remote development):
📁 Documentation Structure¶
docs/
├── README.md # Home page
├── algorithms/ # Algorithm documentation
├── api/ # API reference (auto-generated)
├── cli/ # CLI documentation
├── guides/ # User guides and tutorials
├── modelpool/ # Model pool documentation
├── taskpool/ # Task pool documentation
├── css/ # Custom stylesheets
├── javascripts/ # Custom JavaScript
└── images/ # Documentation images
✍️ Writing Guidelines¶
Markdown Standards¶
- Use ATX-style headers (
#
,##
,###
, etc.) -
Use code fences with language specification:
-
Use admonitions for important notes:
API Documentation¶
Our API documentation is auto-generated using mkdocstrings. To document code:
-
Write comprehensive docstrings:
def example_function(param1: str, param2: int = 10) -> str: """ Brief description of the function. Args: param1: Description of the first parameter. param2: Description of the second parameter. Defaults to 10. Returns: Description of the return value. Example: ```python result = example_function("hello", 5) print(result) # Output: "hello5" ``` """ return param1 + str(param2)
-
Add API pages in
docs/api/
directory:
Mathematical Expressions¶
Use MathJax for mathematical notation:
Thank you for contributing to FusionBench documentation! 🚀