Skip to content

Commit

Permalink
Add entity relation diagram for the catalog database (#665)
Browse files Browse the repository at this point in the history
* add erdiagram

* Add sphinx mermaid dependency

* Make mermaid a directive

Also add explicit target for Catalog Database header

---------

Co-authored-by: Padraic Shafer <[email protected]>
  • Loading branch information
dylanmcreynolds and padraic-shafer authored Mar 8, 2024
1 parent 63b583b commit 4a75e6b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"sphinx_copybutton",
"myst_parser",
"sphinxcontrib.jquery",
"sphinxcontrib.mermaid",
]

# Configuration options for plot_directive. See:
Expand Down
14 changes: 14 additions & 0 deletions docs/source/explanations/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,17 @@ providing a writable data store, the Catalog is used.
[OpenAPI]: https://www.openapis.org/
[Pydantic]: https://docs.pydantic.dev/
[content negotiation]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation

(catalog-database)=
### Catalog Database

```{mermaid}
erDiagram
nodes ||--o{ data_sources : has
data_sources ||--o{ data_source_asset_association : has
data_source_asset_association }|--|{ assets : has
data_sources }|--|| structure : has
nodes ||--o{ revisions : has
alembic_version
```
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ dev = [
"myst-parser",
"numpydoc",
"sphinx-click",
"sphinxcontrib-mermaid",
"sphinx-copybutton",
"sphinx_rtd_theme",
]
Expand Down

0 comments on commit 4a75e6b

Please sign in to comment.