make+doc: generate command-generator.html

This commit is contained in:
Oli 2025-10-21 21:26:26 +02:00
parent 61bbf5dbbb
commit beef8a6c20
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 44 additions and 1 deletions

View file

@ -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

File diff suppressed because one or more lines are too long