From a361367a1d26fef088b9ba482c41bfc160e0f9b4 Mon Sep 17 00:00:00 2001 From: Adrian Lupu Date: Sat, 19 Oct 2019 15:05:17 +0300 Subject: [PATCH] support for deployment diagrams --- C4_Deployment.puml | 10 +++++++--- samples/C4_Deployment Diagram Sample - bigbankplc.puml | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/C4_Deployment.puml b/C4_Deployment.puml index 2038bae..31d489a 100644 --- a/C4_Deployment.puml +++ b/C4_Deployment.puml @@ -1,4 +1,4 @@ -!includeurl https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/master/C4_Container.puml +!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Container.puml ' uncomment the following line and comment the first to use locally ' !include C4_Container.puml @@ -15,5 +15,9 @@ skinparam rectangle<> { ' Elements ' ################################## -!define Deployment_Node(e_alias, e_label) rectangle "==e_label" <> as e_alias -!define Deployment_Node(e_alias, e_label, e_type) rectangle "==e_label\n[e_type]" <> as e_alias \ No newline at end of file +!unquoted function Deployment_Node($alias, $label) +!return 'rectangle "=='+$label+'" <> as '+$alias +!endfunction +!unquoted function Deployment_Node($alias, $label, $type) +!return 'rectangle "=='+$label+'\n['+$type+']" <> as '+$alias +!endfunction diff --git a/samples/C4_Deployment Diagram Sample - bigbankplc.puml b/samples/C4_Deployment Diagram Sample - bigbankplc.puml index 55b2358..54624cc 100644 --- a/samples/C4_Deployment Diagram Sample - bigbankplc.puml +++ b/samples/C4_Deployment Diagram Sample - bigbankplc.puml @@ -1,5 +1,5 @@ @startuml -!includeurl https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/master/C4_Container.puml +!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Deployment.puml ' uncomment the following line and comment the first to use locally ' !include C4_Deployment.puml