From 35da4eaae2052d287c8b25d75ebfdb84822f301b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 4 Jan 2025 14:08:22 +0100 Subject: [PATCH] fix(build): Add missing target for generating usage docs Signed-off-by: Steffen Vogel --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 52ebe343..0409ef92 100644 --- a/Makefile +++ b/Makefile @@ -76,9 +76,12 @@ completions-dir: mkdir completions completions/cunicu.%: completions-dir - go run ./cmd/cunicu/ completion $* > $@ + go run ./cmd/cunicu completion $* > $@ -prepare: clean tidy generate lint completions +docs: + go run ./cmd/cunicu docs --with-frontmatter --output-dir docs/usage + +prepare: clean tidy generate lint completions docs ci: CLICOLOR_FORCE=1 \ @@ -91,4 +94,4 @@ clean: find . -name "*.out" -exec rm {} \; rm -rf cunicu test/logs/ completions/ -.PHONY: all cunicu tests tests-watch coverage clean lint install-deps completions prepare generate ci +.PHONY: all cunicu tests tests-watch coverage clean lint install-deps completions prepare generate ci tidy docs