Skip to content

Commit

Permalink
images relocating
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMTheilig committed Jan 12, 2024
1 parent 9a35164 commit 528b44e
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 25 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/RenderAllDiagrams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Render All Diagrams
on:
push:
paths:
- '**/Material/imgsrc/**/*.puml'
- '**/Material/imgsrc/**/*.drawio'
- '**/Material/images/src/**/*.puml'
- '**/Material/images/src/**/*.drawio'
branches-ignore:
- 'main**'

Expand Down Expand Up @@ -41,40 +41,40 @@ jobs:
# Clean Folder
- name: Ensure and clean folder
run: |
img_dir=ImplementationGuide/images/diagrams
img_dir=Material/images/diagrams
mkdir -p $img_dir
rm -rf ImplementationGuide/images/diagrams/*.png
rm -rf Material/images/diagrams/*.svg
# Generate the PNGs from PUML
- name: Render PUML to PNG and Move files
# Generate the SVGs from PUML
- name: Render PUML to SVG and Move files
run: |
FileNamePaths=$(find . -path "*/imgsrc/*/*.puml" -exec dirname {} \; | sort -u)
FileNamePaths=$(find . -path "*/images/src/*/*.puml" -exec dirname {} \; | sort -u)
for dir in $FileNamePaths
do
# Render PNGs from PUMLs
find $dir -name "*.puml" -exec java -jar plantuml.jar -png {} \;
# Render SVGs from PUMLs
find $dir -name "*.puml" -exec java -jar plantuml.jar -tsvg {} \;
done
# Generate the PNGs from DrawIO
- name: Render DrawIO to PNG with predefined action
# Generate the SVGs from DrawIO
- name: Render DrawIO to SVG with predefined action
uses: rlespinasse/drawio-export-action@v2
with:
path: ./Material/imgsrc/drawio/
path: ./Material/images/src/drawio/
remove-page-suffix: true
output: .
format: png
format: svg
action-mode: all

# copies the created png files to the images/diagrams folder and deletes the drawio files
- name: Move PNGs to target image folder
# copies the created svg files to the images/diagrams folder and deletes the drawio files
- name: Move SVGs to target image folder
run: |
img_dir=ImplementationGuide/images/diagrams
# Find all unique directories containing *.PNG files under any /imgsrc/ folder
FileNamePaths=$(find . -path "*/imgsrc/*/*.PNG" -exec dirname {} \; | sort -u)
img_dir=Material/images/diagrams
# Find all unique directories containing *.SVG files under any /imgsrc/ folder
FileNamePaths=$(find . -path "*/images/src/*/*.SVG" -exec dirname {} \; | sort -u)
for dir in $FileNamePaths
do
# Move PNGs to out directory
find $dir -name "*.png" -exec mv {} $img_dir \;
# Move SVGs to out directory
find $dir -name "*.svg" -exec mv {} $img_dir \;
done
## add and commit the new generated files
Expand Down
3 changes: 1 addition & 2 deletions ImplementationGuide/markdown/AkteureUndInteraktionen.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ Für jeden dieser Bereiche wurden jeweils drei Akteure identifiziert, die in ein
* **Consumer:** Liest die Informationen aus dem Repository, beispielsweise um sie dem Benutzer anzuzeigen oder anderweitig zu verarbeiten.

Die Interaktionen sind somit in allen drei Bereichen äquivalent:

{{render:implementationguide-images-diagrams-interaktionen}}
<img src="https://github.com/gematik/spec-ISiK-Medikation/blob/main-stufe-3/Material/images/diagrams/Interaktionen.svg" alt="Interkationen" width="90%"/>
3 changes: 1 addition & 2 deletions ImplementationGuide/markdown/Datenobjekte.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ Darüber hinaus gelten in diesem Modul folgende Datenobjekt-spezifische Festlegu
{{index:current}}

Die Kern-Zusammenhänge der Datenobjekte zeigt das (stark vereinfacht dargestellte) Diagramm:

{{render:implementationguide-images-diagrams-klassendiagramm}}
<img src="https://github.com/gematik/spec-ISiK-Medikation/blob/main-stufe-3/Material/images/diagrams/Klassendiagramm.svg" alt="Klassendiagramm" width="90%"/>
Binary file not shown.
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://github.com/gematik/spec-ISiK-Medikation/blob/TC_3.0.1/Material/images/Gematik_Logo_Flag.svg" alt="gematik logo" width="400"/>
<img src="https://github.com/gematik/spec-ISiK-Medikation/blob/main-stufe-3/Material/images/Gematik_Logo_Flag.svg" alt="gematik logo" width="400"/>

----
Version: 3.0.1
Expand Down
Binary file removed plantuml.jar
Binary file not shown.

0 comments on commit 528b44e

Please sign in to comment.