diff --git a/.github/workflows/run-percy-tests.yml b/.github/workflows/run-percy-tests.yml index 43dfd2f..04ca48c 100644 --- a/.github/workflows/run-percy-tests.yml +++ b/.github/workflows/run-percy-tests.yml @@ -19,7 +19,7 @@ jobs: - name: Process diagrams uses: Timmy/plantuml-action@v1 with: - args: '-v percy -o _parsed -DRELATIVE_INCLUDE="."' + args: '-v percy -o _parsed -DRELATIVE_INCLUDE="./.."' - name: Upload run: npx @percy/cli upload percy/_parsed env: diff --git a/C4_Component.puml b/C4_Component.puml index 88501ca..bd2669c 100644 --- a/C4_Component.puml +++ b/C4_Component.puml @@ -1,6 +1,6 @@ -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml + !include ./C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/C4_Container.puml b/C4_Container.puml index d26cc09..35d76bf 100644 --- a/C4_Container.puml +++ b/C4_Container.puml @@ -1,6 +1,6 @@ -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include %get_variable_value("RELATIVE_INCLUDE")/C4_Context.puml + !include ./C4_Context.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml !endif diff --git a/C4_Context.puml b/C4_Context.puml index 29f85b3..8a3bbb3 100644 --- a/C4_Context.puml +++ b/C4_Context.puml @@ -1,6 +1,6 @@ -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include %get_variable_value("RELATIVE_INCLUDE")/C4.puml + !include ./C4.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml !endif diff --git a/C4_Deployment.puml b/C4_Deployment.puml index 57ba4e0..4ee1a97 100644 --- a/C4_Deployment.puml +++ b/C4_Deployment.puml @@ -1,6 +1,6 @@ -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml + !include ./C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/C4_Dynamic.puml b/C4_Dynamic.puml index e8f506a..1f2b985 100644 --- a/C4_Dynamic.puml +++ b/C4_Dynamic.puml @@ -1,6 +1,6 @@ -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml + !include ./C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/C4_Component Diagram Sample - bigbankplc.puml b/percy/C4_Component Diagram Sample - bigbankplc.puml index 56b4327..f181629 100644 --- a/percy/C4_Component Diagram Sample - bigbankplc.puml +++ b/percy/C4_Component Diagram Sample - bigbankplc.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/C4_Container Diagram Sample - bigbankplc-icons.puml b/percy/C4_Container Diagram Sample - bigbankplc-icons.puml index e41af32..382aabf 100644 --- a/percy/C4_Container Diagram Sample - bigbankplc-icons.puml +++ b/percy/C4_Container Diagram Sample - bigbankplc-icons.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/C4_Container Diagram Sample - bigbankplc-styles.puml b/percy/C4_Container Diagram Sample - bigbankplc-styles.puml index a3872a2..439364c 100644 --- a/percy/C4_Container Diagram Sample - bigbankplc-styles.puml +++ b/percy/C4_Container Diagram Sample - bigbankplc-styles.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/C4_Container Diagram Sample - bigbankplc.puml b/percy/C4_Container Diagram Sample - bigbankplc.puml index 3857753..f1e76dc 100644 --- a/percy/C4_Container Diagram Sample - bigbankplc.puml +++ b/percy/C4_Container Diagram Sample - bigbankplc.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/C4_Container Diagram Sample - message bus.puml b/percy/C4_Container Diagram Sample - message bus.puml index 7112c7f..f31fe54 100644 --- a/percy/C4_Container Diagram Sample - message bus.puml +++ b/percy/C4_Container Diagram Sample - message bus.puml @@ -1,7 +1,7 @@ @startuml "messagebus" -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/C4_Container Diagram Sample - techtribesjs.puml b/percy/C4_Container Diagram Sample - techtribesjs.puml index 9b5d4ff..5e0ce9e 100644 --- a/percy/C4_Container Diagram Sample - techtribesjs.puml +++ b/percy/C4_Container Diagram Sample - techtribesjs.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/C4_Context Diagram Sample - bigbankplc-landscape.puml b/percy/C4_Context Diagram Sample - bigbankplc-landscape.puml index b7ca084..09fed54 100644 --- a/percy/C4_Context Diagram Sample - bigbankplc-landscape.puml +++ b/percy/C4_Context Diagram Sample - bigbankplc-landscape.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Context.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Context.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml !endif diff --git a/percy/C4_Context Diagram Sample - bigbankplc.puml b/percy/C4_Context Diagram Sample - bigbankplc.puml index a540da0..f82afb1 100644 --- a/percy/C4_Context Diagram Sample - bigbankplc.puml +++ b/percy/C4_Context Diagram Sample - bigbankplc.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Context.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Context.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml !endif diff --git a/percy/C4_Context Diagram Sample - enterprise.puml b/percy/C4_Context Diagram Sample - enterprise.puml index ed51d3a..2989c5d 100644 --- a/percy/C4_Context Diagram Sample - enterprise.puml +++ b/percy/C4_Context Diagram Sample - enterprise.puml @@ -1,7 +1,7 @@ @startuml "enterprise" -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Context.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Context.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml !endif diff --git a/percy/C4_Deployment Diagram Sample - bigbankplc-details.puml b/percy/C4_Deployment Diagram Sample - bigbankplc-details.puml index b09d4ea..1cb3d32 100644 --- a/percy/C4_Deployment Diagram Sample - bigbankplc-details.puml +++ b/percy/C4_Deployment Diagram Sample - bigbankplc-details.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Deployment.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml !endif diff --git a/percy/C4_Deployment Diagram Sample - bigbankplc.puml b/percy/C4_Deployment Diagram Sample - bigbankplc.puml index 861531a..7b5b91d 100644 --- a/percy/C4_Deployment Diagram Sample - bigbankplc.puml +++ b/percy/C4_Deployment Diagram Sample - bigbankplc.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Deployment.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml !endif diff --git a/percy/C4_Dynamic Diagram Sample - bigbankplc.puml b/percy/C4_Dynamic Diagram Sample - bigbankplc.puml index be5676e..8d17387 100644 --- a/percy/C4_Dynamic Diagram Sample - bigbankplc.puml +++ b/percy/C4_Dynamic Diagram Sample - bigbankplc.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Dynamic.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Dynamic.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml !endif diff --git a/percy/TestBoundaryTagSupport.puml b/percy/TestBoundaryTagSupport.puml index 0458122..c96bc47 100644 --- a/percy/TestBoundaryTagSupport.puml +++ b/percy/TestBoundaryTagSupport.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestBoundaryTagSupportSample.puml b/percy/TestBoundaryTagSupportSample.puml new file mode 100644 index 0000000..0e84834 --- /dev/null +++ b/percy/TestBoundaryTagSupportSample.puml @@ -0,0 +1,47 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml +!else + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml +!endif + +' Update the generic boundary style and the "system", "enterprise", "container" boundaries styles too +UpdateBoundaryStyle($bgColor="gold", $fontColor="brown", $borderColor="brown") +' (Re-)Updates the system boundary styles; re-set $bgColor avoids '(no back color)' in legend too +UpdateSystemBoundaryStyle($bgColor="gold", $fontColor="white", $borderColor="white") + +Boundary(b, "A Boundary") { +} + +Container_Boundary(cb, "A Container Boundary") { +} + +System_Boundary(sb, "A System Boundary") { +} + +' defines a new border style incl. new border type +AddBoundaryTag("repository", $bgColor="green", $fontColor="white", $borderColor="white", $shadowing="true", $shape = RoundedBoxShape(), $type="GitHub repository") + +Boundary(c4Respository, "plantuml-stdlib/C4-PlantUML", $tags="repository") { + Component(readMe, "README.md", "Markdown") +} + +' boundary tags are internally extended with '_boundary' that it uses a different name space +' this enables different element and boundary styles for the same tag name +AddBoundaryTag("v1", $bgColor="lightgreen", $fontColor="green", $borderColor="green") +AddElementTag("v1", $bgColor="lightred", $fontColor="red", $borderColor="red") + +Boundary(anotherBoundary, "Another Boundary", $type="BOUNDARY TYPE", $tags="v1") { + Component(anotherComponent, "Another Component", $techn="COMPONENT TYPE", $tags="v1", $descr="Component and boundary use different tag name spaces that both v1 tags can use different styles") +} + +Lay_R(b, cb) +Lay_R(cb, sb) + +Lay_D(b, c4Respository) + +Lay_R(c4Respository, anotherBoundary) + +SHOW_LEGEND() +@enduml diff --git a/percy/TestFloatingLegend.puml b/percy/TestFloatingLegend.puml index 025cace..dab67c9 100644 --- a/percy/TestFloatingLegend.puml +++ b/percy/TestFloatingLegend.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/TestLayDirections.puml b/percy/TestLayDirections.puml index f3ba23e..ba2498a 100644 --- a/percy/TestLayDirections.puml +++ b/percy/TestLayDirections.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/TestLayoutLandscape.puml b/percy/TestLayoutLandscape.puml index a709ea9..7989f01 100644 --- a/percy/TestLayoutLandscape.puml +++ b/percy/TestLayoutLandscape.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestLayoutLandscapeDynamic.puml b/percy/TestLayoutLandscapeDynamic.puml index 2a2a0cb..8b1fc12 100644 --- a/percy/TestLayoutLandscapeDynamic.puml +++ b/percy/TestLayoutLandscapeDynamic.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Dynamic.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Dynamic.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml !endif diff --git a/percy/TestLegend.puml b/percy/TestLegend.puml index 24e7aa6..811e231 100644 --- a/percy/TestLegend.puml +++ b/percy/TestLegend.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestLegend2.puml b/percy/TestLegend2.puml new file mode 100644 index 0000000..c2ae1ca --- /dev/null +++ b/percy/TestLegend2.puml @@ -0,0 +1,36 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml +!else + !include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Component.puml +!endif + +C4Version() + +' person legend displays the correct sprite +SHOW_PERSON_SPRITE("person2") +' HIDE_PERSON_SPRITE() +' SHOW_PERSON_PORTRAIT() +' SHOW_PERSON_OUTLINE() + +' UpdateElementStyle("person", $legendText="Person with correct legend", $sprite="person2") +' missing definitions are reused from last UpdateElementStyle() in legends too +UpdateElementStyle("person") + +UpdateElementStyle("external_system", $bgColor="chocolate", $fontColor="orange", $borderColor="orange", $shadowing="true", $shape=RoundedBoxShape(), $sprite="robot", $techn="my tech", $legendSprite="robot,scale=0.25") +' missing definitions are reused from last UpdateElementStyle() in legends too +UpdateElementStyle("external_system") + +' AddExternalSystemTag("micro_service", $shape=EightSidedShape()) +' AddElementTag("storage", $shadowing="true", $shape=RoundedBoxShape()) + +System_Ext(system, "System") + +Person(person, "Person") + +' System_Ext(system1A, "System 1A", $tags="micro_service") +' System_Ext(system2, "System 2", $tags = "storage") + +SHOW_LEGEND(false) +@enduml \ No newline at end of file diff --git a/percy/TestLegendHidden.puml b/percy/TestLegendHidden.puml index 62153cd..a60ad61 100644 --- a/percy/TestLegendHidden.puml +++ b/percy/TestLegendHidden.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestLegendSprite.puml b/percy/TestLegendSprite.puml index 59fbac6..c372fdc 100644 --- a/percy/TestLegendSprite.puml +++ b/percy/TestLegendSprite.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestPersonOutline.puml b/percy/TestPersonOutline.puml index 190075c..1925cb0 100644 --- a/percy/TestPersonOutline.puml +++ b/percy/TestPersonOutline.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Deployment.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml !endif diff --git a/percy/TestPersonPortrait.puml b/percy/TestPersonPortrait.puml index 5c0a911..63bf174 100644 --- a/percy/TestPersonPortrait.puml +++ b/percy/TestPersonPortrait.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Deployment.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml !endif diff --git a/percy/TestPredefinedSprites.puml b/percy/TestPredefinedSprites.puml index 5d7bbf9..f7250e7 100644 --- a/percy/TestPredefinedSprites.puml +++ b/percy/TestPredefinedSprites.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestRelations.puml b/percy/TestRelations.puml index 6fa6082..fca7f54 100644 --- a/percy/TestRelations.puml +++ b/percy/TestRelations.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestRelationsDynamic.puml b/percy/TestRelationsDynamic.puml index 762493b..6d808e6 100644 --- a/percy/TestRelationsDynamic.puml +++ b/percy/TestRelationsDynamic.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Dynamic.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Dynamic.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml !endif diff --git a/percy/TestSketchStyle.puml b/percy/TestSketchStyle.puml index 8a9a6b2..af97c2d 100644 --- a/percy/TestSketchStyle.puml +++ b/percy/TestSketchStyle.puml @@ -1,6 +1,6 @@ @startuml LAYOUT_AS_SKETCH Sample !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Container.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml !endif diff --git a/percy/TestTagSupportsSprite.puml b/percy/TestTagSupportsSprite.puml index 59a3280..fc98a07 100644 --- a/percy/TestTagSupportsSprite.puml +++ b/percy/TestTagSupportsSprite.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestTagSupportsSpriteTechn.puml b/percy/TestTagSupportsSpriteTechn.puml index 9951f0e..667993d 100644 --- a/percy/TestTagSupportsSpriteTechn.puml +++ b/percy/TestTagSupportsSpriteTechn.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Component.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Component.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml !endif diff --git a/percy/TestVersion.puml b/percy/TestVersion.puml index f7f2f82..88e0dc0 100644 --- a/percy/TestVersion.puml +++ b/percy/TestVersion.puml @@ -1,7 +1,7 @@ @startuml -' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally !if %variable_exists("RELATIVE_INCLUDE") - !include ./../C4_Deployment.puml + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml !endif