mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? Moved decision which d2 layout engine to use into file. ## Why? Allows each file to pick the right layout engine for itself. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
351 B
Makefile
12 lines
351 B
Makefile
.DEFAULT_GOAL := update-diagrams
|
|
COLOR := "\e[1;36m%s\e[0m\n"
|
|
DIAGRAMS := $(wildcard ./_assets/*.d2)
|
|
|
|
install-d2:
|
|
@printf $(COLOR) "Install d2..."
|
|
@go install oss.terrastruct.com/d2@v0.7.1
|
|
|
|
update-diagrams: install-d2
|
|
@printf $(COLOR) "Update diagrams"
|
|
$(foreach DIAGRAM, $(DIAGRAMS), $(shell d2 --theme 7 --dark-theme 200 $(DIAGRAM) $(NEWLINE)))
|