echo"Skipping tools/doc/node_modules (no crypto and/or no ICU)";\
else\
cd tools/doc &&$(call available-node,$(run-npm-ci))\
fi
RAWVER=$(shell$(PYTHON) tools/getnodeversion.py)
VERSION=v$(RAWVER)
.PHONY: doc-only
.NOTPARALLEL: doc-only
doc-only: $(apidoc_dirs)$(apidocs_html)$(apidocs_json) out/doc/api/all.html out/doc/api/all.json out/doc/llms.txt out/doc/apilinks.json ## Builds the docs with the local or the global Node.js binary.
.PHONY: doc
doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation with the new binary.
out/doc:
mkdir -p $@
cp doc/node-config-schema.json $@
# If it's a source tarball, doc/api already contains the generated docs.
# Just copy everything under doc/api over.
out/doc/api: doc/api
mkdir -p $@
cp -r doc/api out/doc
# Generate all doc files (individual and all.html/all.json) in a single doc-kit call
# Using grouped targets (&:) so Make knows one command produces all outputs
ifeq ($(OSTYPE),aix)
# TODO(@nodejs/web-infra): AIX is currently hanging during HTML minification