Skip to content

Commit

Permalink
embed logo svg
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMTheilig committed Jan 12, 2024
1 parent 3615c02 commit 6d84a3a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 25 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/RenderAllDiagrams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions ImplementationGuide/diagrams/amts_data_objects.puml

This file was deleted.

40 changes: 40 additions & 0 deletions ImplementationGuide/images/Gematik_Logo_Flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ImplementationGuide/markdown/Einfuehrung.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://raw.githubusercontent.com/gematik/spec-ISiK-Basismodul/master-isik-stufe-2/Material/Gematik_Logo_Flag.png" alt="gematik logo" width="400"/>
<img src="https://github.com/gematik/spec-ISiK-Medikation/blob/TC_3.0.1/ImplementationGuide/images/Gematik_Logo_Flag.svg" alt="gematik logo" width="400"/>

----
Version: 3.0.1
Expand Down

0 comments on commit 6d84a3a

Please sign in to comment.