Skip to content

Commit

Permalink
render.sh: Use npx
Browse files Browse the repository at this point in the history
See #25
  • Loading branch information
aloisklink authored and nhooyr committed Dec 13, 2022
1 parent 7faf640 commit 4e1f7b9
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ci/render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ _d2() {
sh_c D2_LAYOUT=elk hide d2 ./src/examples/"$ex"/syntax/d2 ./src/examples/"$ex"/render/d2_elk.svg
}

mmdc() {
npx --package @mermaid-js/[email protected] -- mmdc "$@"
}

_mmdc() {
sh_c mmdc -i ./src/examples/"$ex"/syntax/mermaid -o ./src/examples/"$ex"/render/mermaid_dagre.svg
}
Expand Down
2 changes: 1 addition & 1 deletion src/examples/0_basic/render/mermaid_dagre.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4e1f7b9

Please sign in to comment.