Skip to content

Commit

Permalink
use raw githubusercontent
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMTheilig committed Jan 12, 2024
1 parent 24c1102 commit fcb4ca7
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 17 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/RenderAllDiagrams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,43 @@ jobs:
run: |
img_dir=Material/images/diagrams
mkdir -p $img_dir
rm -rf Material/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 "*/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
# Remove plantUML jar
- name: remove plantuml file
run: |
rm -f plantuml.jar
# 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/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=Material/images/diagrams
# Find all unique directories containing *.PNGs files under any /imgsrc/ folder
FileNamePaths=$(find . -path "*/images/src/*/*.png" -exec dirname {} \; | sort -u)
# Find all unique directories containing *.SVGs 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
2 changes: 1 addition & 1 deletion ImplementationGuide/markdown/AkteureUndInteraktionen.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +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:
<img src="https://github.com/gematik/spec-ISiK-Medikation/blob/main-stufe-3/Material/images/diagrams/Interaktionen.png" alt="Interkationen" width="90%"/>
<img src="https://raw.githubusercontent.com/gematik/spec-ISiK-Medikation/main-stufe-3/Material/images/diagrams/Interaktionen.svg" class="center" alt="Interkationen" width="90%"/>
2 changes: 1 addition & 1 deletion ImplementationGuide/markdown/Datenobjekte.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +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:
<img src="https://github.com/gematik/spec-ISiK-Medikation/blob/main-stufe-3/Material/images/diagrams/Klassendiagramm.png" alt="Klassendiagramm" width="90%"/>
<img src="https://raw.githubusercontent.com/gematik/spec-ISiK-Medikation/main-stufe-3/Material/images/diagrams/Klassendiagramm.png" class="center" alt="Klassendiagramm" width="90%"/>
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/main-stufe-3/Material/images/Gematik_Logo_Flag.png" alt="gematik logo" width="400"/>
<img src="https://raw.githubusercontent.com/gematik/spec-ISiK-Medikation/main-stufe-3/Material/images/Gematik_Logo_Flag.svg" alt="gematik logo" width="400"/>

----
Version: 3.0.1
Expand Down
Binary file removed Material/images/Gematik_Logo_Flag.png
Binary file not shown.
40 changes: 40 additions & 0 deletions Material/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.
Binary file removed Material/images/diagrams/Interaktionen.png
Binary file not shown.
Binary file removed Material/images/diagrams/Klassendiagramm.png
Binary file not shown.

0 comments on commit fcb4ca7

Please sign in to comment.