Documentation for AAPS (Android Artificial Pancreas System).
To view documentation, visit https://androidaps.readthedocs.io.
The current build logs of the documentation can be found in Github Actions.
Detail of broken links in the doc can be found in the build logs. Select a build in Github Action "Deploy", then "Usage". Click on "build" and expand again the "Build line". Search for "WARNING".
You can build the documentation locally on your computer to preview changes before committing them.
Ensure Python 3.8+ is installed on your system. Install the required dependencies from the root of the repository:
pip install -r requirements.txtBuild the English documentation:
cd docs/EN
sphinx-build -M html . _buildThe built documentation will be in docs/EN/_build/html/. Open index.html in your browser to view it.
To build a different language (e.g., Czech):
cd docs/CROWDIN/cs
sphinx-build -M html . _buildThe qualitycheck.py script in the utils/ folder validates the documentation for common issues like broken links, missing images, and orphaned files.
Check the English documentation:
python utils/qualitycheck.pyCheck a specific language (e.g., Czech):
python utils/qualitycheck.py --lang csCheck all languages (English + all CROWDIN translations):
python utils/qualitycheck.py --lang all-
--lang <code>- Language selector (default:EN). Use CROWDIN language codes likecs,de,fr, orallfor all languages. -
--docs-root <path>- Docs root folder (default:docs). -
--check-remote-links- Also validate non-image remote links (http/https). This enables checking that external links are accessible. -
--fail-on-unused- Fail (exit with non-zero code) if unused pictures are found. Useful for CI/CD pipelines. -
--timeout <seconds>- HTTP timeout in seconds for remote checks (default: 8). Increase if checking remote links on slow connections. -
--workers <number>- Number of parallel workers for remote checks (default: 12). Adjust based on your system resources.
The utility performs the following validations:
- Broken anchors and reference calls - Detects invalid anchor links and references within the documentation.
- Broken local links - Finds links to non-existent local files.
- Missing pictures - Identifies image references that point to non-existent files.
- Remote pictures - Validates that remote images are accessible (when
--check-remote-linksis used). - Unused pictures - Detects image files that are not referenced anywhere in the documentation.
Validate English docs with all remote checks:
python utils/qualitycheck.py --check-remote-linksValidate Czech docs and fail if unused images are found:
python utils/qualitycheck.py --lang cs --fail-on-unusedValidate all languages with increased timeout and worker count:
python utils/qualitycheck.py --lang all --check-remote-links --timeout 15 --workers 20