Skip to content

Commit

Permalink
Add special rendering for ExampleScenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
lmckenzi committed Aug 22, 2023
1 parent f19168d commit a8b24f1
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@
"testing": "{{[type]}}-{{[id]}}-testing.html",
"change-history": "{{[type]}}-{{[id]}}.change.history.html"
},
"ExampleScenario": {
"template-base": "template/layouts/layout-examplescenario.html",
"template-format": "template/layouts/layout-instance-format.html",
"template-testing": "template/layouts/layout-canonical-testing.html",
"template-change-history": "template/layouts/layout-changehistory.html",
"base": "{{[type]}}-{{[id]}}.html",
"format": "{{[type]}}-{{[id]}}.{{[fmt]}}.html",
"testing": "{{[type]}}-{{[id]}}-testing.html",
"change-history": "{{[type]}}-{{[id]}}.change.history.html"
},
"EventDefinition": {
"template-base": "template/layouts/layout-canonical.html",
"template-format": "template/layouts/layout-instance-format.html",
Expand Down
50 changes: 50 additions & 0 deletions layouts/layout-examplescenario.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
---
{% include fragment-pagebegin.html %}
<div class="col-12">
<!--ReleaseHeader--><p id="publish-box">Publish Box goes here</p><!--EndReleaseHeader-->
{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %}
<a name="root"> </a>

<h2 id="root">{{[type]}}: {{site.data.pages[page.path].title | escape_once}}
{% if site.data.resources[resource_].experimental == true %}(Experimental){% endif %}
</h2>

{% include fragment-resourceTable.html %}

{%if site.data.resources[resource_].description %}
<p>
{{site.data.resources[resource_].description|markdownify}}
</p>
{% endif %}
{%if site.data.resources[resource_].purpose %}
<p>
{{site.data.resources[resource_].purpose|markdownify}}
</p>
{% endif %}
<!-- insert intro if present -->
{% include fragment-intro.html type='{{[type]}}' id='{{[id]}}' %}

<a name="actors"> </a>
<h4>Actors</h4>
{% include {{[type]}}-{{[id]}}-actor-table.xhtml %}

<a name="diaram"> </a>
<h4>Diagram</h4>
{% include {{[type]}}-{{[id]}}-process-diagram.xhtml %}

<a name="processes"> </a>
<h4>Processes</h4>
{% include {{[type]}}-{{[id]}}-processes.xhtml %}

<a name="instances"> </a>
<h4>Instances</h4>
{% include {{[type]}}-{{[id]}}-instance-table.xhtml %}

<!-- insert notes if present -->
{% include fragment-notes.html type='{{[type]}}' id='{{[id]}}' %}

{%include {{[type]}}-{{[id]}}-history.xhtml%}

</div>
{% include fragment-pageend.html %}

0 comments on commit a8b24f1

Please sign in to comment.