From 15a38728e5e8785f725314056f983155c4a1f4ad Mon Sep 17 00:00:00 2001 From: tmorin Date: Mon, 30 Sep 2024 21:20:18 +0200 Subject: [PATCH] fix(library): icons are not loaded when using remote loader --- src/cmd/library/generate/templates/library_bootstrap.rs | 2 +- src/cmd/library/generate/templates/library_documentation.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/library/generate/templates/library_bootstrap.rs b/src/cmd/library/generate/templates/library_bootstrap.rs index 3367743..359df3b 100644 --- a/src/cmd/library/generate/templates/library_bootstrap.rs +++ b/src/cmd/library/generate/templates/library_bootstrap.rs @@ -17,7 +17,7 @@ pub const TEMPLATE: &str = r##"{%- block header %}{% endblock header %} !endif !if (%not(%variable_exists("$IMAGE_BASE_PATH"))) && (%variable_exists("$LIB_BASE_LOCATION")) - !global $IMAGE_BASE_PATH=$LIB_BASE_LOCATION + "/" + !global $IMAGE_BASE_PATH=$LIB_BASE_LOCATION !endif ' constants diff --git a/src/cmd/library/generate/templates/library_documentation.rs b/src/cmd/library/generate/templates/library_documentation.rs index 0815c86..bf473d8 100644 --- a/src/cmd/library/generate/templates/library_documentation.rs +++ b/src/cmd/library/generate/templates/library_documentation.rs @@ -77,7 +77,7 @@ include('aws-20200911/bootstrap') ```plantuml @startuml level1-system !include ../../../ref/c4.puml -!global $IMAGE_BASE_PATH="../../" + $LIB_BASE_LOCATION + "/" +!global $IMAGE_BASE_PATH="../../" + $LIB_BASE_LOCATION !global $LIB_BASE_LOCATION="../../" + $LIB_BASE_LOCATION ' description of the diagram below ' ..... @@ -88,7 +88,7 @@ include('aws-20200911/bootstrap') ```plantuml @startuml infrastructure-production !include ../../../ref/aws.puml -!global $IMAGE_BASE_PATH="../../" + $LIB_BASE_LOCATION + "/" +!global $IMAGE_BASE_PATH="../../" + $LIB_BASE_LOCATION !global $LIB_BASE_LOCATION="../../" + $LIB_BASE_LOCATION ' description of the diagram below ' .....