-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed e0ae78c with MkDocs version: 1.6.1
- Loading branch information
Unknown
committed
Sep 28, 2024
0 parents
commit bf222ab
Showing
174 changed files
with
304,282 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
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,63 @@ | ||
version: "3" | ||
|
||
vars: | ||
PLANTUML_RENDERER_VERSION: 1.2021.5 | ||
DRAWIO_EXPORT_VERSION: 4.1.0 | ||
|
||
tasks: | ||
_mkdir: | ||
cmds: | ||
- mkdir -p diagrams/render-png | ||
- mkdir -p diagrams/render-svg | ||
|
||
clean: | ||
desc: Delete all rendered diagrams | ||
cmds: | ||
- rm -fr diagrams/render-png | ||
- rm -fr diagrams/render-svg | ||
|
||
render: | ||
desc: Render all diagrams | ||
cmds: | ||
- task: render:plantuml | ||
- task: render:drawio | ||
|
||
build:plantuml: | ||
desc: Build the container image we use for rendering plantuml | ||
dir: ../tools/plantuml | ||
cmds: | ||
# We do not publish the image as it is very then wrapper around a download | ||
# of platuml an as such having a published image would just be an extra | ||
# thing to keep track of. | ||
- IMAGE_URL=plantuml TAG=0.0.0 PLANTUML_VERSION={{.PLANTUML_RENDERER_VERSION}} task build | ||
|
||
render:plantuml: | ||
desc: Render svg and png versions plantuml diagrams | ||
deps: [_mkdir, build:plantuml] | ||
cmds: | ||
# PDF is currently not supported: https://plantuml.com/pdf | ||
- | | ||
docker run \ | ||
-v "${PWD}/diagrams/:/checkout" \ | ||
-w "/checkout" \ | ||
plantuml:0.0.0 \ | ||
-verbose -tpng -o render-png *.puml | ||
- | | ||
docker run \ | ||
-v "${PWD}/diagrams/:/checkout" \ | ||
-w "/checkout" \ | ||
plantuml:0.0.0 \ | ||
-verbose -tsvg -o render-svg *.puml | ||
render:drawio: | ||
desc: Render svg and png versions drawio diagrams | ||
deps: [_mkdir] | ||
cmds: | ||
- | | ||
docker run \ | ||
-v "${PWD}/diagrams:/data" rlespinasse/drawio-export:{{.DRAWIO_EXPORT_VERSION}} --remove-page-suffix --format png --output render-png --scale 2 | ||
- | | ||
docker run \ | ||
-v "${PWD}/diagrams:/data" rlespinasse/drawio-export:{{.DRAWIO_EXPORT_VERSION}} --remove-page-suffix --format svg --output render-svg --scale 2 |
Oops, something went wrong.