Skip to content

Commit

Permalink
add diagram helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Sep 6, 2022
1 parent 35f66a3 commit 9b4f35b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 1 addition & 6 deletions _gxp/200-model-business.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ Please call out more perspectives that need to be added.

![status](https://img.shields.io/badge/status-draft-red)

<iframe
class="diagram"
frameborder="0"
style="width:100%;height:973px;"
src="https://viewer.diagrams.net/#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D1aRsuMeJJxG60YwnNezoTkzPwlnOciHJN">
</iframe>
{% include diagram.html code="1aRsuMeJJxG60YwnNezoTkzPwlnOciHJN" %}
12 changes: 12 additions & 0 deletions _includes/diagram.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

{% if include.code == "" %}
<p>Please specify a valid diagram id.</p>
{% else %}

<iframe
frameborder="0"
style="width:100%;height:973px;"
src="https://viewer.diagrams.net/#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D{{ include.code }}%26export%3Ddownload">
</iframe>

{% endif %}

0 comments on commit 9b4f35b

Please sign in to comment.