From 6d84a3aea59c1ac3dcb032a6109dc338c59388e9 Mon Sep 17 00:00:00 2001 From: Max Theilig Date: Fri, 12 Jan 2024 10:32:42 +0100 Subject: [PATCH] embed logo svg --- .github/workflows/RenderAllDiagrams.yml | 28 ++++++------- .../diagrams/amts_data_objects.puml | 10 ----- .../images/Gematik_Logo_Flag.svg | 40 +++++++++++++++++++ ImplementationGuide/markdown/Einfuehrung.md | 2 +- 4 files changed, 55 insertions(+), 25 deletions(-) delete mode 100644 ImplementationGuide/diagrams/amts_data_objects.puml create mode 100644 ImplementationGuide/images/Gematik_Logo_Flag.svg diff --git a/.github/workflows/RenderAllDiagrams.yml b/.github/workflows/RenderAllDiagrams.yml index 7a7cdae..08bdf0d 100644 --- a/.github/workflows/RenderAllDiagrams.yml +++ b/.github/workflows/RenderAllDiagrams.yml @@ -43,38 +43,38 @@ jobs: run: | img_dir=ImplementationGuide/images/diagrams mkdir -p $img_dir - rm -rf ImplementationGuide/images/diagrams/*.svg + rm -rf ImplementationGuide/images/diagrams/*.png - # Generate the SVGs from PUML - - name: Render PUML to SVG and Move files + # Generate the PNGs from PUML + - name: Render PUML to PNG and Move files run: | FileNamePaths=$(find . -path "*/imgsrc/*/*.puml" -exec dirname {} \; | sort -u) for dir in $FileNamePaths do - # Render SVGs from PUMLs - find $dir -name "*.puml" -exec java -jar plantuml.jar -tsvg {} \; + # Render PNGs from PUMLs + find $dir -name "*.puml" -exec java -jar plantuml.jar -png {} \; done - # Generate the SVGs from DrawIO - - name: Render DrawIO to SVG with predefined action + # Generate the PNGs from DrawIO + - name: Render DrawIO to PNG with predefined action uses: rlespinasse/drawio-export-action@v2 with: path: ./Material/imgsrc/drawio/ remove-page-suffix: true output: . - format: svg + format: png action-mode: all - # copies the created png & svg files to the images/diagrams folder and deletes the drawio files - - name: Move SVGs to target image folder + # copies the created png files to the images/diagrams folder and deletes the drawio files + - name: Move PNGs to target image folder run: | img_dir=ImplementationGuide/images/diagrams - # Find all unique directories containing *.svg files under any /imgsrc/ folder - FileNamePaths=$(find . -path "*/imgsrc/*/*.svg" -exec dirname {} \; | sort -u) + # Find all unique directories containing *.PNG files under any /imgsrc/ folder + FileNamePaths=$(find . -path "*/imgsrc/*/*.PNG" -exec dirname {} \; | sort -u) for dir in $FileNamePaths do - # Move SVGs to out directory - find $dir -name "*.svg" -exec mv {} $img_dir \; + # Move PNGs to out directory + find $dir -name "*.png" -exec mv {} $img_dir \; done ## add and commit the new generated files diff --git a/ImplementationGuide/diagrams/amts_data_objects.puml b/ImplementationGuide/diagrams/amts_data_objects.puml deleted file mode 100644 index e7333b4..0000000 --- a/ImplementationGuide/diagrams/amts_data_objects.puml +++ /dev/null @@ -1,10 +0,0 @@ -```plantuml -@startuml component -actor client -node app -database db - -db -> app -app -> client -@enduml -``` \ No newline at end of file diff --git a/ImplementationGuide/images/Gematik_Logo_Flag.svg b/ImplementationGuide/images/Gematik_Logo_Flag.svg new file mode 100644 index 0000000..2097670 --- /dev/null +++ b/ImplementationGuide/images/Gematik_Logo_Flag.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + diff --git a/ImplementationGuide/markdown/Einfuehrung.md b/ImplementationGuide/markdown/Einfuehrung.md index 84a3dcf..59c2a60 100644 --- a/ImplementationGuide/markdown/Einfuehrung.md +++ b/ImplementationGuide/markdown/Einfuehrung.md @@ -1,4 +1,4 @@ -gematik logo +gematik logo ---- Version: 3.0.1