From 938a089691614856746e331ec97350a290a80242 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Fri, 15 Nov 2024 17:57:44 -0600 Subject: [PATCH] docs: ensure we regenerate workflow docs on template changes --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c32a69ab..4e4d7b42 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,8 @@ else ACTIVATE := $(VENV_DIR)/bin/activate endif +WFTMPLS := $(wildcard workflows/*/workflowtemplates/*.yaml) + .PHONY: help help: ## Displays this help message @echo "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/|/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s'|' | sort)" @@ -26,7 +28,7 @@ $(ACTIVATE): requirements-docs.txt @$(PIP) install -U -r requirements-docs.txt @touch $(ACTIVATE) -docs/workflows/argo-events.md: $(ACTIVATE) +docs/workflows/argo-events.md: $(WFTMPLS) $(ACTIVATE) @mkdir -p docs/workflows @$(PYTHON) scripts/argo-workflows-to-mkdocs.py workflows docs/workflows