From bc0b65006d3dcda61503c1c113f344e2be6543d0 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Sun, 15 Jun 2025 14:48:24 +0200 Subject: [PATCH] feat(doc): Add doc target This only regenerates docs for packages. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5277716..aeffcf9 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ SHELL := bash .DELETE_ON_ERROR: MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --no-builtin-rules -.PHONY: help clean build install tests test +.PHONY: help clean build install tests test doc all: build @@ -204,6 +204,11 @@ push-release: build-all @rm -f release.id +doc: + @echo "=> Generating documentation..." + # generate the labels doc and code doc + $(MAKE) __label_doc + __label_doc: @command -v gomarkdoc || (echo "==> We need to install gomarkdoc..." && \ go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest)