feat(doc): Add doc target

This only regenerates docs for packages.
This commit is contained in:
2025-06-15 14:48:24 +02:00
parent 933f04bf5e
commit bc0b65006d

View File

@@ -33,7 +33,7 @@ SHELL := bash
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-rules
.PHONY: help clean build install tests test .PHONY: help clean build install tests test doc
all: build all: build
@@ -204,6 +204,11 @@ push-release: build-all
@rm -f release.id @rm -f release.id
doc:
@echo "=> Generating documentation..."
# generate the labels doc and code doc
$(MAKE) __label_doc
__label_doc: __label_doc:
@command -v gomarkdoc || (echo "==> We need to install gomarkdoc..." && \ @command -v gomarkdoc || (echo "==> We need to install gomarkdoc..." && \
go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest) go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest)