From 38c4f11399b444b45f292c468fa71530bd3b208c Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Fri, 1 Nov 2024 16:58:04 +0000 Subject: [PATCH] Added examples of diagrams with includes causing build failures --- test/fixture/docbook/diagram-with-include.puml | 6 ++++++ test/fixture/docbook/subdir/another.md | 4 ++++ .../docbook/subdir/diagram-with-relative-include.puml | 4 ++++ test/fixture/docbook/subdir2/includes.puml | 3 +++ test/fixture/docbook/test.md | 4 ++++ 5 files changed, 21 insertions(+) create mode 100644 test/fixture/docbook/diagram-with-include.puml create mode 100644 test/fixture/docbook/subdir/diagram-with-relative-include.puml create mode 100644 test/fixture/docbook/subdir2/includes.puml diff --git a/test/fixture/docbook/diagram-with-include.puml b/test/fixture/docbook/diagram-with-include.puml new file mode 100644 index 00000000..0d7d885d --- /dev/null +++ b/test/fixture/docbook/diagram-with-include.puml @@ -0,0 +1,6 @@ +@startuml dummy_filename +!include external-diagram.puml +!include_many subdir2/includes.puml +Bob<-Alice : hello2 +Bob->Alice : $someReference +@enduml diff --git a/test/fixture/docbook/subdir/another.md b/test/fixture/docbook/subdir/another.md index 6fe273f1..5d78f278 100644 --- a/test/fixture/docbook/subdir/another.md +++ b/test/fixture/docbook/subdir/another.md @@ -4,3 +4,7 @@ Here are some images: ![jpg from the current path](smile2.jpg) ![jpg from the parent path](../smile.jpg) + +## PlantUML diagram with a relative include + +![An external PlantUML diagram with a relative include](./diagram-with-relative-include.puml) diff --git a/test/fixture/docbook/subdir/diagram-with-relative-include.puml b/test/fixture/docbook/subdir/diagram-with-relative-include.puml new file mode 100644 index 00000000..af19e8fe --- /dev/null +++ b/test/fixture/docbook/subdir/diagram-with-relative-include.puml @@ -0,0 +1,4 @@ +@startuml dummy_filename +!include_many ../subdir2/includes.puml +Bob->Alice : $someReference +@enduml diff --git a/test/fixture/docbook/subdir2/includes.puml b/test/fixture/docbook/subdir2/includes.puml new file mode 100644 index 00000000..c4107105 --- /dev/null +++ b/test/fixture/docbook/subdir2/includes.puml @@ -0,0 +1,3 @@ +@startuml +!$someReference = "Hello World" +@enduml diff --git a/test/fixture/docbook/test.md b/test/fixture/docbook/test.md index 9ee38449..cae28280 100644 --- a/test/fixture/docbook/test.md +++ b/test/fixture/docbook/test.md @@ -72,3 +72,7 @@ This is an image that's over 500kb so we can be sure that bigger images work: ## Inline PUML file ![An external PlantUML diagram](./external-diagram.puml) + +### Inline PUML with includes + +![An external PlantUML diagram with includes](./diagram-with-include.puml)