Skip to content

Commit

Permalink
render.sh: Enable deterministic IDs on mmdc
Browse files Browse the repository at this point in the history
#34 (comment)

Works on everything except 6_tables for some reason.
  • Loading branch information
aloisklink authored and nhooyr committed Dec 15, 2022
1 parent f204811 commit f07e66a
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion ci/render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ _d2() {
}

mmdc() {
npx --package @mermaid-js/[email protected] -- mmdc "$@"
config=$(mktempd)/mmdc-config
echo '{"deterministicIds": true}' >$config
npx --package @mermaid-js/[email protected] -- mmdc -c"$config" "$@"
}

_mmdc() {
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.
2 changes: 1 addition & 1 deletion src/examples/10_wiiu/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 f07e66a

Please sign in to comment.