-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81b4f14
commit 7ea9cbf
Showing
8 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pip3 install mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin | ||
|
||
curl -fsSL https://d2lang.com/install.sh | sh -s -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Create diagram SVGs" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/create-diagram-svgs.yml | ||
- src/diagrams/*.d2 | ||
|
||
jobs: | ||
create-diagram-svgs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install d2 | ||
run: curl -fsSL https://d2lang.com/install.sh | sh -s -- | ||
|
||
- name: Generate SVGs | ||
run: | | ||
find "$GITHUB_WORKSPACE/diagrams" -name "*.svg" -delete | ||
for d2_file in $(find "$GITHUB_WORKSPACE/src/diagrams" -name "*.d2"); do | ||
filename=$(basename -- "$d2_file") | ||
output_file="$GITHUB_WORKSPACE/diagrams/${filename%.d2}.svg" | ||
d2 --theme=3 -l elk "$d2_file" "$output_file" | ||
done | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Create diagram SVGs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hier werden automatisch alle Diagramme aus der GitHub Action abgelegt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
direction: down | ||
|
||
GitHub : { | ||
label: Starten aus GitHub | ||
style: { | ||
stroke: blue | ||
stroke-dash: 3 | ||
fill: transparent | ||
} | ||
|
||
exists : { | ||
label: "Existiert bereits ein Codespace?" | ||
shape: image | ||
icon: ./src/diagrams/img/does-codespace-exist.png | ||
} | ||
|
||
create : { | ||
label: "Codespace erstellen" | ||
} | ||
|
||
exists -> create: "Nein" | ||
|
||
open : { | ||
label: "Codespace im VS Code öffnen" | ||
shape: image | ||
icon: ./src/diagrams/img/open-existing-codespace.png | ||
} | ||
|
||
exists -> open: "Ja" | ||
} | ||
|
||
VSCode : { | ||
label: "Starten aus VS Code" | ||
style: { | ||
stroke: blue | ||
stroke-dash: 3 | ||
fill: transparent | ||
} | ||
near: bottom-center | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.