From a8b24f19be8c32eafb0dd0f21eed246ad3ef87ad Mon Sep 17 00:00:00 2001 From: Lloyd McKenzie Date: Tue, 22 Aug 2023 15:55:42 -0600 Subject: [PATCH] Add special rendering for ExampleScenarios --- config.json | 10 ++++++ layouts/layout-examplescenario.html | 50 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 layouts/layout-examplescenario.html diff --git a/config.json b/config.json index 73eca3e..01fdc5c 100644 --- a/config.json +++ b/config.json @@ -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", diff --git a/layouts/layout-examplescenario.html b/layouts/layout-examplescenario.html new file mode 100644 index 0000000..e96d81f --- /dev/null +++ b/layouts/layout-examplescenario.html @@ -0,0 +1,50 @@ +--- +--- +{% include fragment-pagebegin.html %} +
+

Publish Box goes here

+ {% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %} + + +

{{[type]}}: {{site.data.pages[page.path].title | escape_once}} +{% if site.data.resources[resource_].experimental == true %}(Experimental){% endif %} +

+ +{% include fragment-resourceTable.html %} + +{%if site.data.resources[resource_].description %} +

+{{site.data.resources[resource_].description|markdownify}} +

+{% endif %} +{%if site.data.resources[resource_].purpose %} +

+{{site.data.resources[resource_].purpose|markdownify}} +

+{% endif %} + + {% include fragment-intro.html type='{{[type]}}' id='{{[id]}}' %} + + +

Actors

+ {% include {{[type]}}-{{[id]}}-actor-table.xhtml %} + + +

Diagram

+ {% include {{[type]}}-{{[id]}}-process-diagram.xhtml %} + + +

Processes

+ {% include {{[type]}}-{{[id]}}-processes.xhtml %} + + +

Instances

+ {% include {{[type]}}-{{[id]}}-instance-table.xhtml %} + + + {% include fragment-notes.html type='{{[type]}}' id='{{[id]}}' %} + + {%include {{[type]}}-{{[id]}}-history.xhtml%} + +
+{% include fragment-pageend.html %}