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