How to Update Documentation
This guide explains how to update and maintain the documentation. Our documentation is built using Sphinx and hosted on Read the Docs.
Prerequisites
Before you start, make sure you have:
Python 3.8 or higher installed
Git installed and repository cloned locally.
Local Setup
Navigate to the docs directory:
cd docs
Create and activate a Python virtual environment:
python -m venv .venv # use python3 if needed source .venv/bin/activate # On Windows, use: .venv\Scripts\activate
Install documentation dependencies:
pip install -r requirements.txt # use pip3 if needed
Writing Documentation
Our documentation uses Markdown files with MyST Parser extensions. Key points:
Documentation files are located in the
/docsdirectoryUse
.mdextension for documentation filesFollow the existing directory structure
Include new pages in the appropriate section in
index.md
Supported Features
Regular Markdown syntax
Mermaid diagrams (for flowcharts and sequences)
PlantUML diagrams
Cross-references between pages
Code blocks with syntax highlighting
Building Documentation Locally
To build the documentation:
make htmlTo view the built documentation:
Open
_build/html/index.htmlin your web browserOr use Python’s built-in server:
python3 -m http.server --directory _build/html
For automatic rebuilding during development:
sphinx-autobuild . _build/html
Deployment
Our documentation is automatically deployed through Read the Docs when changes are pushed to the main branch. To view the deployed documentation:
Visit Read the Docs
Login with your account (create one if needed)
You can view build status and logs in the Apollon2 project dashboard
Contributing to Documentation
Workflow
Create a new branch for documentation changes:
git checkout -b docs/your-documentation-update
Make your changes following our documentation structure
Build and test new documents locally
Commit your changes with a descriptive message:
git commit -m "docs: update [section] with [details]"
Push your changes and create a pull request
Address any review feedback
Once approved, your changes will be merged and automatically deployed
Best Practices
Keep documentation up to date with code changes
Write clear, concise, and grammatically correct content
Include examples and code snippets where appropriate
Test your documentation locally before committing
Use appropriate headers and maintain consistent formatting
Add cross-references to related documentation sections
Follow these style guidelines:
Use American English
Write in present tense
Use active voice
Keep paragraphs focused and concise
Include code examples for technical features
Add screenshots for UI-related documentation
Read the Docs Configuration
Our documentation is built and hosted on Read the Docs. Here’s how the integration works:
The documentation configuration is controlled by:
docs/conf.py: Sphinx configuration.readthedocs.yaml: Read the Docs build configurationdocs/requirements.txt: Python dependencies for documentation
Build Process:
Read the Docs automatically detects new commits
Builds are triggered on:
Push to main branch
Pull request updates (for preview builds)
Manual build triggers in Read the Docs dashboard
Version Management:
Main branch is built as ‘latest’
Tagged releases create versioned documentation
You can manage versions in the Read the Docs dashboard
Troubleshooting Builds:
Check build logs in Read the Docs dashboard
Common issues:
Missing dependencies
Syntax errors in documentation
Configuration file issues
Local build errors usually indicate what will fail on Read the Docs
Need Help?
If you need assistance or have questions:
Check existing documentation in the
/docsdirectoryOpen an issue on GitHub
Contact the maintainers