mirror of
https://github.com/guggero/chantools.git
synced 2026-08-13 12:33:34 +02:00
make+doc: generate command-generator.html
This commit is contained in:
parent
61bbf5dbbb
commit
beef8a6c20
2 changed files with 44 additions and 1 deletions
7
Makefile
7
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
|
||||
|
||||
|
|
|
|||
38
doc/command-generator.html
Normal file
38
doc/command-generator.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue