@@ -385,7 +385,7 @@ test/addons/.docbuildstamp: $(DOCBUILDSTAMP_PREREQS) tools/doc/node_modules
385
385
echo " Skipping .docbuildstamp (no crypto and/or no ICU)" ; \
386
386
else \
387
387
$(RM ) -r test/addons/?? _* /; \
388
- $(call available-node, $(NPX ) --prefix tools/doc api-docs-tooling -t addon-verify -i doc/api/addons.md -o test/addons/ --lint-dry-run ) \
388
+ $(call available-node, $(NPX ) --prefix tools/doc api-docs-tooling generate -t addon-verify -i doc/api/addons.md -o test/addons/ --no-lint ) \
389
389
[ $$ ? -eq 0 ] && touch $@ ; \
390
390
fi
391
391
@@ -791,13 +791,26 @@ tools/doc/node_modules: tools/doc/package.json
791
791
cd tools/doc && $(call available-node,$(run-npm-ci ) ) \
792
792
fi
793
793
794
+ RAWVER =$(shell $(PYTHON ) tools/getnodeversion.py)
795
+ VERSION =v$(RAWVER )
796
+
794
797
.PHONY : doc-only
795
798
doc-only : tools/doc/node_modules \
796
799
$(apidoc_dirs ) # # Builds the docs with the local or the global Node.js binary.
797
800
@if [ " $( shell $( node_use_openssl_and_icu) ) " != " true" ]; then \
798
801
echo " Skipping doc-only (no crypto or no icu)" ; \
799
802
else \
800
- $(call available-node, $(NPX ) --prefix tools/doc api-docs-tooling -t legacy-html-all legacy-json-all api-links -i doc/api/\* .md -i lib/\* .js --ignore $(skip_apidoc_files ) -o out/doc/api/ --lint-dry-run -c file://$(PWD ) /CHANGELOG.md) \
803
+ $(call available-node, \
804
+ $(NPX ) --prefix tools/doc api-docs-tooling generate \
805
+ -t legacy-html-all legacy-json-all api-links \
806
+ -i doc/api/* .md \
807
+ -i lib/* .js \
808
+ --ignore $(skip_apidoc_files ) \
809
+ -o out/doc/api/ \
810
+ --no-lint \
811
+ -c file://$(PWD ) /CHANGELOG.md \
812
+ -v $(VERSION ) \
813
+ ) \
801
814
fi
802
815
803
816
.PHONY : doc
@@ -832,8 +845,6 @@ docserve: doc-only ## Serve the documentation on localhost:8000.
832
845
docclean : # # Remove the generated documentation.
833
846
$(RM ) -r out/doc
834
847
835
- RAWVER =$(shell $(PYTHON ) tools/getnodeversion.py)
836
- VERSION =v$(RAWVER )
837
848
CHANGELOG =doc/changelogs/CHANGELOG_V$(firstword $(subst ., ,$(RAWVER ) ) ) .md
838
849
839
850
# For nightly builds, you must set DISTTYPE to "nightly", "next-nightly" or
@@ -1342,7 +1353,7 @@ lint-md: lint-js-doc lint-docs | tools/.mdlintstamp ## Lint the markdown documen
1342
1353
.PHONY : lint-docs
1343
1354
lint-docs : tools/doc/node_modules
1344
1355
$(info Running API Doc linter...)
1345
- $(call available-node, $(NPX ) --prefix tools/doc api-docs-tooling -i doc/api/* .md -r github )
1356
+ $(call available-node, $(NPX ) --prefix tools/doc api-docs-tooling lint -i doc/api/* .md)
1346
1357
1347
1358
run-format-md = tools/lint-md/lint-md.mjs --format $(LINT_MD_FILES )
1348
1359
.PHONY : format-md
0 commit comments