Skip to content

Commit

Permalink
BAC-9154: add mermaidjs support to docs
Browse files Browse the repository at this point in the history
Merge in BAC/icometrix-sdk from feature/mermaid-docs to master

Squashed commit of the following:

commit 449e263ef7c39a214eda6cfee69099564d14fed0
Merge: d2bceb7 d7c6ca8
Author: Jeroen Pinxten <jeroen.pinxten@icometrix.com>
Date:   Thu Feb 15 11:27:37 2024 +0100

    Merge branch 'master' into feature/mermaid-docs

    # Conflicts:
    #	docs/developer_guide/models.rst

commit d2bceb77cb0d968f338c13987182d50087f84dd7
Author: Jeroen Pinxten <jeroen.pinxten@icometrix.com>
Date:   Thu Feb 15 11:26:21 2024 +0100

    BAC-9154: model relation docs

commit 625f3acedec41de2ad0aa78821f563f657867b5e
Author: Jeroen Pinxten <jeroen.pinxten@icometrix.com>
Date:   Thu Feb 15 11:22:32 2024 +0100

    BAC-9154: add mermaidJS support in DOCS
  • Loading branch information
jpinxten committed Feb 15, 2024
1 parent d7c6ca8 commit 3f4ac2e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx.ext.autodoc"
"sphinx.ext.autodoc",
"sphinxcontrib.mermaid"
]

# sphinx.ext.autodoc options
Expand Down
11 changes: 11 additions & 0 deletions docs/developer_guide/model_relations.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
erDiagram
USERS }|--|{ PROJECTS : "has access to"
PROJECTS ||--|{ PATIENTS : contains
PATIENTS ||--|{ STUDIES : contains
STUDIES ||--|{ SERIES : contains
SERIES ||--|{ DICOMS : contains
STUDIES ||--|{ PIPELINE-RESULT : has
PIPELINE-RESULTS ||--|{ CUSTOMER-RESULTS : has
PATIENTS ||--|{ PIPELINE-LONG-RESULTS : has
PIPELINE-LONG-RESULTS ||--|{ CUSTOMER-LONG-RESULTS : has
STUDIES ||--|| CUSTOMER-REPORTS : has
11 changes: 10 additions & 1 deletion docs/developer_guide/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ Collections
-----------

When fetching a collection of models from the API; you will always get a subset of that collection in combination with
some extra meta data. See: :doc:`paginators`
<<<<<<< HEAD
some extra meta data. See: :doc:`paginators`

Relations
---------

High level overview of the relations between the available entities

.. mermaid:: model_relations.mmd

7 changes: 4 additions & 3 deletions docs/models/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ Models

.. toctree::

customer_report
patient
user
project
patient
upload
user
customer_result
customer_report
base
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-r ../requirements.txt
sphinx>=7.2.6
sphinxcontrib-mermaid~=0.9.2
furo

0 comments on commit 3f4ac2e

Please sign in to comment.