Try with rendered SVGs in Markdown and <details>

This commit is contained in:
Neil Martinsen-Burrell 2023-05-12 15:07:02 -05:00
parent de9a82725a
commit 738e0dabd6
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
4 changed files with 17 additions and 2 deletions

View file

@ -19,7 +19,12 @@ A more complete diagram of the data models, their fields, and their
relationships are in [models_diagram.md](./models_diagram.md), created with relationships are in [models_diagram.md](./models_diagram.md), created with
the `django-model2puml` plugin. the `django-model2puml` plugin.
```mermaid ![./model_timeline.svg]
<details>
<summary>PlantUML source code</summary>
```plantuml
@startuml
allowmixing allowmixing
left to right direction left to right direction
@ -130,4 +135,7 @@ user2 -[#green]-> DomainInformation : **/domain/<id>/?????**
actor user3 #Green actor user3 #Green
user3 -right[#green]-> UserDomainRole : **/domain/<id>/users/add** user3 -right[#green]-> UserDomainRole : **/domain/<id>/users/add**
user3 -right[#green]-> DomainInvitation : **/domain/<id>/users/add** user3 -right[#green]-> DomainInvitation : **/domain/<id>/users/add**
@enduml
``` ```
</details>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -8,7 +8,11 @@ using the command
$ docker compose app ./manage.py generate_puml --include registrar $ docker compose app ./manage.py generate_puml --include registrar
``` ```
```mermaid ![./models_diagram.svg]
<details>
<summary>PlantUML source code</summary>
```plantuml
@startuml @startuml
class "registrar.Contact <Registrar>" as registrar.Contact #d6f4e9 { class "registrar.Contact <Registrar>" as registrar.Contact #d6f4e9 {
contact contact
@ -260,3 +264,4 @@ class "registrar.Website <Registrar>" as registrar.Website #d6f4e9 {
@enduml @enduml
``` ```
</details>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 68 KiB