Added the ability to include drawio diagrams into the sphinx docs. (#107)

This commit is contained in:
Philipp Horstenkamp 2023-09-09 17:43:23 +02:00
parent 3fad05309f
commit 54dd574fb8
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
4 changed files with 12 additions and 1 deletions

View File

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- main - main
- docs/timeline-etc
pull_request: pull_request:
types: [reopened, opened, synchronize] types: [reopened, opened, synchronize]
@ -12,7 +13,10 @@ jobs:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: sudo apt install pandoc -y - name: Install prio to running the process
run: |
sudo apt install pandoc snapd -y
sudo snap install drawio
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4

View File

@ -44,6 +44,7 @@ extensions: Final[list[str]] = [
"IPython.sphinxext.ipython_console_highlighting", "IPython.sphinxext.ipython_console_highlighting",
"sphinxcontrib.mermaid", "sphinxcontrib.mermaid",
"notfound.extension", "notfound.extension",
"sphinxcontrib.drawio",
] ]
# templates_path : Final[list[str]] = ["_templates"] # templates_path : Final[list[str]] = ["_templates"]

View File

@ -4,6 +4,11 @@ Transparenzregister Dokumentation
================================= =================================
This is the documentation for the AKI project group on the german transparenzregister and an Analysis there of. This is the documentation for the AKI project group on the german transparenzregister and an Analysis there of.
.. drawio-figure:: project_management/Arch.-Planning.drawio
:format: png
An example diagram
.. include:: ../README.md .. include:: ../README.md
:parser: myst_parser.sphinx_ :parser: myst_parser.sphinx_
.. include:: ../CONTRIBUTING.md .. include:: ../CONTRIBUTING.md

View File

@ -75,6 +75,7 @@ sphinx-copybutton = "^0.5.2"
sphinx-notfound-page = "^1.0.0" sphinx-notfound-page = "^1.0.0"
sphinx-rtd-theme = "^1.3.0" sphinx-rtd-theme = "^1.3.0"
sphinx_autodoc_typehints = "*" sphinx_autodoc_typehints = "*"
sphinxcontrib-drawio = "^0.0.16"
sphinxcontrib-mermaid = "^0.9.2" sphinxcontrib-mermaid = "^0.9.2"
sphinxcontrib-napoleon = "^0.7" sphinxcontrib-napoleon = "^0.7"