How to regenerate the autogenerated diagrams¶
Prerequisites:
- Create and activate a Python virtual environment (
.venv) from the project root:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install the project development extras (contains
pyreversevia thepylintpackage) in the activated venv:
pip install -e ".[develop]"
- System tools required:
graphviz(providesdot). Optional fallback tools:imagemagick(convert) andpotrace.
Generate the SVGs locally with:
./scripts/generate-diagrams.sh
Notes:
- The CI/docs workflow regenerates these SVGs automatically; the repository ignores the generated SVGs (
docs/reference/diagrams/*.svg) and intermediate files (*.dot,*.pnm). - If you want to keep the intermediate DOT files for inspection, edit
scripts/generate-diagrams.shand disable the cleanup step.