-
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.
feat(mermaid): replace mermaid package with container
- Loading branch information
1 parent
ddb488f
commit a28268b
Showing
3 changed files
with
11 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export DOCKER_HOST := "unix://" + env_var("XDG_RUNTIME_DIR") + "/podman/podman.sock" | ||
|
||
# List all available commands | ||
@help: | ||
just --list | ||
|
||
# Generate mermaid diagrams | ||
@diagrams: | ||
podman run --userns keep-id --user ${UID} --rm -v {{ justfile_directory() }}/src:/app:z -w /app --entrypoint sh minlag/mermaid-cli:11.2.1 -c 'find ./data/mermaid -name "*.mmd" -exec sh -c '"'"'/home/mermaidcli/node_modules/.bin/mmdc -p /puppeteer-config.json -b transparent -i "$1" -o ./assets/mermaid/"$(basename "$1" .mmd).svg"'"'"' _ {} \;' |
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
Oops, something went wrong.