Commit 37d5c80f97c for nodejs
commit 37d5c80f97cd8104b5dafc35f6e1646cc8d39673
Author: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>
Date: Sun Sep 27 13:29:58 2026 -0500
build: toggle doc-kit verbosity based on V
Signed-off-by: bmuenzenmeyer <brian.muenzenmeyer@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66293
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
diff --git a/Makefile b/Makefile
index cffe3550ca1..0582e926d1f 100644
--- a/Makefile
+++ b/Makefile
@@ -403,6 +403,11 @@ DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS) out/$(BUILDTYPE)/node.exp
endif
DOC_KIT ?= tools/doc/node_modules/@doc-kit/cli/bin/cli.mjs
+ifeq ($(V),1)
+DOC_KIT_LOG_LEVEL ?= debug
+else
+DOC_KIT_LOG_LEVEL ?= info
+endif
node_use_openssl_and_icu = $(call available-node,"-p" \
"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
else \
$(call available-node, \
$(DOC_KIT) generate \
- --log-level debug \
+ --log-level $(DOC_KIT_LOG_LEVEL) \
--config-file tools/doc/web.doc-kit.config.mjs \
-v $(VERSION) \
$(if $(JOBS),-p $(JOBS)) \
@@ -922,6 +927,7 @@ out/doc/llms.txt: $(apidoc_sources) tools/doc/node_modules | out/doc
else \
$(call available-node, \
$(DOC_KIT) generate \
+ --log-level $(DOC_KIT_LOG_LEVEL) \
--config-file tools/doc/web.doc-kit.config.mjs \
-t llms-txt \
-o $(@D) \
@@ -935,6 +941,7 @@ out/doc/apilinks.json: $(wildcard lib/*.js) tools/doc/node_modules | out/doc
else \
$(call available-node, \
$(DOC_KIT) generate \
+ --log-level $(DOC_KIT_LOG_LEVEL) \
--config-file tools/doc/api-links.doc-kit.config.mjs \
-o $(@D) \
-v $(VERSION) \
@@ -951,6 +958,7 @@ node.1: doc/api/cli.md tools/doc/node_modules
else \
$(call available-node, \
$(DOC_KIT) generate \
+ --log-level $(DOC_KIT_LOG_LEVEL) \
-v $(VERSION) \
--config-file tools/doc/man-page.doc-kit.config.mjs \
-o doc \
@@ -1494,6 +1502,7 @@ tools/.manpagelintstamp: doc/node.1 doc/api/cli.md tools/doc/node_modules
$(RM) -r tools/doc/.manpagecheck && \
$(call available-node, \
$(DOC_KIT) generate \
+ --log-level $(DOC_KIT_LOG_LEVEL) \
-v $(VERSION) \
--config-file tools/doc/man-page.doc-kit.config.mjs \
) \