mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
build: move doc versions JSON file out of out/doc
Move the generated previous doc versions JSON file out of `out/doc` to prevent it being included in the distributed packages. Signed-off-by: Richard Lau <riclau@uk.ibm.com> PR-URL: https://github.com/nodejs/node/pull/32728 Fixes: https://github.com/nodejs/build/issues/2276 Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
This commit is contained in:
parent
df05b0785b
commit
ce21749742
3
Makefile
3
Makefile
@ -784,7 +784,7 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets
|
||||
run-npm-ci = $(PWD)/$(NPM) ci
|
||||
|
||||
LINK_DATA = out/doc/apilinks.json
|
||||
VERSIONS_DATA = out/doc/previous-versions.json
|
||||
VERSIONS_DATA = out/previous-doc-versions.json
|
||||
gen-api = tools/doc/generate.js --node-version=$(FULLVERSION) \
|
||||
--apilinks=$(LINK_DATA) $< --output-directory=out/doc/api \
|
||||
--versions-file=$(VERSIONS_DATA)
|
||||
@ -816,6 +816,7 @@ docopen: $(apidocs_html)
|
||||
.PHONY: docclean
|
||||
docclean:
|
||||
$(RM) -r out/doc
|
||||
$(RM) "$(VERSIONS_DATA)"
|
||||
|
||||
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
|
||||
VERSION=v$(RAWVER)
|
||||
|
Loading…
Reference in New Issue
Block a user