Skip to content

Commit

Permalink
Fix live reloading of documentation diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Jul 13, 2023
1 parent 078059b commit 65ebc8e
Show file tree
Hide file tree
Showing 6 changed files with 1,188 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ app/dist

# mdbook
docs/book
# generated d2 diagrams
docs/src/assets/gen

# Mac OS shenanigans
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion dev/render_diagrams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "$(git rev-parse --show-toplevel)"
if [[ -n "$WATCHEXEC_EVENTS_FILE" && -n "$(cat "$WATCHEXEC_EVENTS_FILE")" ]] ; then
# echo script was called by watchexec change event
# parse and deduplicate change events from watchexec
diagrams="$(sd '.*/([^/]*).d2' "\$1" "$WATCHEXEC_EVENTS_FILE" | sort -u)"
diagrams="$(sd -p '.*/([^/]*).d2' "\$1" "$WATCHEXEC_EVENTS_FILE" | sort -u)"
else
diagrams=""
for diagram in docs/diagrams/* ; do
Expand Down
Loading

0 comments on commit 65ebc8e

Please sign in to comment.