From f9a69dad557dfbde0d0d50808394a4e026f3125d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etxaniz=20Errazkin=2C=20I=C3=B1aki?= <inaki.etxaniz@tecnalia.com> Date: Wed, 5 Mar 2025 17:15:35 +0100 Subject: [PATCH] Update 5 files - /including.puml - /roles.puml - /testDiagram.md - /README.md - /bad_including.puml --- README.md | 11 +++++++++++ bad_including.puml | 3 +++ including.puml | 5 +++++ roles.puml | 4 ++-- testDiagram.md | 9 +++++++-- 5 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 bad_including.puml create mode 100644 including.puml diff --git a/README.md b/README.md index d1cfc59..df83436 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,14 @@ Hopefully, this feature will be automatically translated to Tecnalia's Gitlab wh (Example: https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/testDiagram.puml renders only text) +**03/2025**: Updated to GitLab Community Edition v17.9.1 +Now, the puml files render as diagrams!! + +Examples: +https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/testDiagram.puml renders only text) + +https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/included_part.iuml + +https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/bad_including.puml (includes a wrong ```!including``` clause, and gives an error :-()) + +https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/including.puml (includes a correct (https://) ```!including``` clause!) \ No newline at end of file diff --git a/bad_including.puml b/bad_including.puml new file mode 100644 index 0000000..fb418e6 --- /dev/null +++ b/bad_including.puml @@ -0,0 +1,3 @@ +'This include wont work. The renderer doesn't found the file locally + +!include included_part.iuml \ No newline at end of file diff --git a/including.puml b/including.puml new file mode 100644 index 0000000..f0f58b0 --- /dev/null +++ b/including.puml @@ -0,0 +1,5 @@ +!include https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/included_part.iuml + + +'Copied from: +'https://gitlab.com/schurzi/playground/-/raw/main/plantuml_include/master.puml diff --git a/roles.puml b/roles.puml index 9818c5c..0659cb1 100644 --- a/roles.puml +++ b/roles.puml @@ -1,2 +1,2 @@ -!define InternalAuditor "Internal Auditor" -!define ComplianceManager "Compliance Manager" \ No newline at end of file +!define InternalA "Internal Auditor" +!define ComplianceM "Compliance Manager" \ No newline at end of file diff --git a/testDiagram.md b/testDiagram.md index e989443..bfb489b 100644 --- a/testDiagram.md +++ b/testDiagram.md @@ -1,5 +1,6 @@ @startuml -```plantuml this is for tecnalia plantuml plugin + +!include https://git.code.tecnalia.dev/emerald/public/puml-includes/-/blob/master/roles.puml participant "GUI/IDE eclipse" as DESIDE participant "Infrastructural\nElements\nCatalogue" as IECDB #99FF99 @@ -8,6 +9,10 @@ participant "Runtime Controller (PRC)" as RTPRC participant PerformanceMonitoring as IAMON participant SecurityMonitoring as SECMON +'Testing !include +== TESTING HTTPS INCLUDE == +InternalA -> ComplianceM + == DESIGN TIME == group Catalogue update DESIDE -> IECDB: Element endorsement (26) @@ -37,5 +42,5 @@ end 'note over InfrastruturalElementsCatalogue:Is the IOP always called by RuntimeController? -``` + @enduml -- GitLab