Skip to content

Commit 70c869e

Browse files
bmuenzenmeyeraduh95
authored andcommitted
build: toggle doc-kit verbosity based on V
Signed-off-by: bmuenzenmeyer <brian.muenzenmeyer@gmail.com> PR-URL: #66293 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 9256a61 commit 70c869e

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 \
@@ -1518,6 +1526,7 @@ tools/.manpagelintstamp: doc/node.1 doc/api/cli.md tools/doc/node_modules
15181526
$(RM) -r tools/doc/.manpagecheck && \
15191527
$(call available-node, \
15201528
$(DOC_KIT) generate \
1529+
--log-level $(DOC_KIT_LOG_LEVEL) \
15211530
-v $(VERSION) \
15221531
--config-file tools/doc/man-page.doc-kit.config.mjs \
15231532
) \

0 commit comments

Comments
 (0)