From beef8a6c20eb9a3ed18896fac46ea8c74b47f8f9 Mon Sep 17 00:00:00 2001 From: Oli Date: Tue, 21 Oct 2025 21:26:26 +0200 Subject: [PATCH] make+doc: generate command-generator.html --- Makefile | 7 ++++++- doc/command-generator.html | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 doc/command-generator.html diff --git a/Makefile b/Makefile index 491d427..9325f20 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,11 @@ docker-tools: @$(call print, "Building tools docker image.") docker build -q -t chantools-tools $(TOOLS_DIR) +command-generator-build: + @$(call print, "Building command generator.") + cd doc/command-generator; npm install && npm run build + mv doc/command-generator/dist/index.html doc/command-generator.html + fmt: $(GOIMPORTS_BIN) @$(call print, "Fixing imports.") gosimports -w $(GOFILES_NOVENDOR) @@ -99,7 +104,7 @@ lint: docker-tools @$(call print, "Linting source.") $(DOCKER_TOOLS) golangci-lint run -v $(LINT_WORKERS) -docs: install +docs: install command-generator-build @$(call print, "Rendering docs.") chantools doc diff --git a/doc/command-generator.html b/doc/command-generator.html new file mode 100644 index 0000000..25f29e3 --- /dev/null +++ b/doc/command-generator.html @@ -0,0 +1,38 @@ + + + + + + + chantools command generator + + + + +
+ +