An MkDocs plugin that aggregates documentation from multiple DiracX ecosystem repositories into a unified documentation site.
pip install git+https://github.com/DIRACGrid/mkdocs-diracx-plugin.gitAdd the plugin to your mkdocs.yml configuration:
plugins:
- diracx:
repos:
- url: https://github.com/DIRACGrid/diracx-charts
branch: master
include:
- docs
- diracx
- url: https://github.com/DIRACGrid/diracx-web
branch: main
include:
- docsurl: Repository URL (remote) or local filesystem pathbranch: Git branch to checkout (ignored for local paths)include: List of directories/files to include from the repository
Remote repositories:
plugins:
- diracx:
repos:
- url: https://github.com/DIRACGrid/diracx-charts
branch: master
include: [docs, diracx]Local repositories:
plugins:
- diracx:
repos:
- url: /path/to/local/repo
include: [docs]- Creates a temporary directory during the build process
- Copies the main documentation repository
- For each configured repository:
- Remote: Clones and uses git sparse-checkout for efficiency
- Local: Copies specified directories directly
- Merges all documentation into a single site structure
- Supports live reload during
mkdocs serve