Skip to content

Commit beef8a6

Browse files
committed
make+doc: generate command-generator.html
1 parent 61bbf5d commit beef8a6

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ docker-tools:
8989
@$(call print, "Building tools docker image.")
9090
docker build -q -t chantools-tools $(TOOLS_DIR)
9191

92+
command-generator-build:
93+
@$(call print, "Building command generator.")
94+
cd doc/command-generator; npm install && npm run build
95+
mv doc/command-generator/dist/index.html doc/command-generator.html
96+
9297
fmt: $(GOIMPORTS_BIN)
9398
@$(call print, "Fixing imports.")
9499
gosimports -w $(GOFILES_NOVENDOR)
@@ -99,7 +104,7 @@ lint: docker-tools
99104
@$(call print, "Linting source.")
100105
$(DOCKER_TOOLS) golangci-lint run -v $(LINT_WORKERS)
101106

102-
docs: install
107+
docs: install command-generator-build
103108
@$(call print, "Rendering docs.")
104109
chantools doc
105110

0 commit comments

Comments
 (0)