From b0d1692be214fca237ed25f37954702b4fc2757a Mon Sep 17 00:00:00 2001 From: KIRCHSTH Date: Sat, 9 Jan 2021 16:11:57 +0100 Subject: [PATCH] #93: local file includes can be activated via command line argument -DRELATIVE_INCLUDE="." (2 - fix !if) --- C4_Component.puml | 2 +- C4_Container.puml | 2 +- C4_Context.puml | 2 +- C4_Deployment.puml | 2 +- C4_Dynamic.puml | 2 +- README.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/C4_Component.puml b/C4_Component.puml index 942410d..cc76765 100644 --- a/C4_Component.puml +++ b/C4_Component.puml @@ -1,5 +1,5 @@ ' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally -!include https://raw.githubu!if %variable_exists("RELATIVE_INCLUDE") +!if %variable_exists("RELATIVE_INCLUDE") !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml diff --git a/C4_Container.puml b/C4_Container.puml index ad7d31f..6a1622d 100644 --- a/C4_Container.puml +++ b/C4_Container.puml @@ -1,5 +1,5 @@ ' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally -!include https://raw.githubu!if %variable_exists("RELATIVE_INCLUDE") +!if %variable_exists("RELATIVE_INCLUDE") !include %get_variable_value("RELATIVE_INCLUDE")/C4_Context.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml diff --git a/C4_Context.puml b/C4_Context.puml index 8844ef4..1178fd6 100644 --- a/C4_Context.puml +++ b/C4_Context.puml @@ -1,5 +1,5 @@ ' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally -!include https://raw.githubu!if %variable_exists("RELATIVE_INCLUDE") +!if %variable_exists("RELATIVE_INCLUDE") !include %get_variable_value("RELATIVE_INCLUDE")/C4.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml diff --git a/C4_Deployment.puml b/C4_Deployment.puml index a9c7412..3e49ee1 100644 --- a/C4_Deployment.puml +++ b/C4_Deployment.puml @@ -1,5 +1,5 @@ ' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally -!include https://raw.githubu!if %variable_exists("RELATIVE_INCLUDE") +!if %variable_exists("RELATIVE_INCLUDE") !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml !else !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml diff --git a/C4_Dynamic.puml b/C4_Dynamic.puml index ee0e827..ff4d007 100644 --- a/C4_Dynamic.puml +++ b/C4_Dynamic.puml @@ -1,5 +1,5 @@ ' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally -!include https://raw.githubu!if %variable_exists("RELATIVE_INCLUDE") +!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 diff --git a/README.md b/README.md index 1301e0d..73db967 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ C4-PlantUML includes macros, stereotypes, and other goodies (like VSCode Snippet At the top of your C4 PlantUML `.puml` file, you need to include the `C4_Context.puml`, `C4_Container.puml` or `C4_Component.puml` file found in the `root` of this repo. -To be independent of any internet connectivity, you can also download the files found in the `root` and activate the relative include with additional command line argument `-DRELATIVE_INCLUDE="."` +To be independent of any internet connectivity, you can also download the files found in the `root` and activate the local conversion with additional command line argument `-DRELATIVE_INCLUDE="."` (that the local files are included) ```c# java -jar plantuml.jar -DRELATIVE_INCLUDE="." ...