Skip to content

Commit

Permalink
docs: ensure we regenerate workflow docs on template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoe committed Nov 15, 2024
1 parent d523c67 commit 938a089
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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

Expand Down

0 comments on commit 938a089

Please sign in to comment.