Skip to content

Commit eef657d

Browse files
committed
build: toggle doc-kit verbosity based on V
Signed-off-by: bmuenzenmeyer <brian.muenzenmeyer@gmail.com>
1 parent 6c59f35 commit eef657d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS) out/$(BUILDTYPE)/node.exp
403403
endif
404404

405405
DOC_KIT ?= tools/doc/node_modules/@doc-kit/cli/bin/cli.mjs
406+
ifeq ($(V),1)
407+
DOC_KIT_LOG_LEVEL ?= debug
408+
else
409+
DOC_KIT_LOG_LEVEL ?= info
410+
endif
406411

407412
node_use_openssl_and_icu = $(call available-node,"-p" \
408413
"process.versions.openssl != undefined && process.versions.icu != undefined")
@@ -908,7 +913,7 @@ $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json &: $(a
908913
else \
909914
$(call available-node, \
910915
$(DOC_KIT) generate \
911-
--log-level debug \
916+
--log-level $(DOC_KIT_LOG_LEVEL) \
912917
--config-file tools/doc/web.doc-kit.config.mjs \
913918
-v $(VERSION) \
914919
$(if $(JOBS),-p $(JOBS)) \
@@ -922,6 +927,7 @@ out/doc/llms.txt: $(apidoc_sources) tools/doc/node_modules | out/doc
922927
else \
923928
$(call available-node, \
924929
$(DOC_KIT) generate \
930+
--log-level $(DOC_KIT_LOG_LEVEL) \
925931
--config-file tools/doc/web.doc-kit.config.mjs \
926932
-t llms-txt \
927933
-o $(@D) \
@@ -935,6 +941,7 @@ out/doc/apilinks.json: $(wildcard lib/*.js) tools/doc/node_modules | out/doc
935941
else \
936942
$(call available-node, \
937943
$(DOC_KIT) generate \
944+
--log-level $(DOC_KIT_LOG_LEVEL) \
938945
--config-file tools/doc/api-links.doc-kit.config.mjs \
939946
-o $(@D) \
940947
-v $(VERSION) \
@@ -951,6 +958,7 @@ node.1: doc/api/cli.md tools/doc/node_modules
951958
else \
952959
$(call available-node, \
953960
$(DOC_KIT) generate \
961+
--log-level $(DOC_KIT_LOG_LEVEL) \
954962
-v $(VERSION) \
955963
--config-file tools/doc/man-page.doc-kit.config.mjs \
956964
-o doc \
@@ -1493,6 +1501,7 @@ tools/.manpagelintstamp: doc/node.1 doc/api/cli.md tools/doc/node_modules
14931501
$(RM) -r tools/doc/.manpagecheck && \
14941502
$(call available-node, \
14951503
$(DOC_KIT) generate \
1504+
--log-level $(DOC_KIT_LOG_LEVEL) \
14961505
-v $(VERSION) \
14971506
--config-file tools/doc/man-page.doc-kit.config.mjs \
14981507
) \

0 commit comments

Comments
 (0)