Files
temporal/docs/Makefile
Stephan Behnke 648daa7d2e Define layout engine in d2 file (#9697)
## 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>
2026-03-30 17:08:45 +00:00

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)))