#93: local file includes can be activated via command line argument -DRELATIVE_INCLUDE="." (2 - fix !if)

pull/107/head
KIRCHSTH 5 years ago
parent d799a4c5d5
commit b0d1692be2

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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="." ...

Loading…
Cancel
Save