File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,8 @@ apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
544
544
545
545
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/* ) ) )
546
546
547
- doc-only : $(apidocs_html ) $(apidocs_json )
547
+ doc-targets : $(apidocs_html ) $(apidocs_json )
548
+ doc-only : | install-yaml doc-targets
548
549
doc : $(NODE_EXE ) doc-only
549
550
550
551
$(apidoc_dirs ) :
@@ -561,15 +562,16 @@ gen-json = tools/doc/generate.js --format=json $< > $@
561
562
gen-html = tools/doc/generate.js --node-version=$(FULLVERSION ) --format=html \
562
563
--template=doc/template.html --analytics=$(DOCS_ANALYTICS ) $< > $@
563
564
564
- gen-doc = \
565
+ install-yaml :
565
566
[ -e tools/doc/node_modules/js-yaml/package.json ] || \
566
567
[ -e tools/eslint/node_modules/js-yaml/package.json ] || \
567
568
if [ -x $( NODE) ]; then \
568
569
cd tools/doc && ../../$(NODE ) ../../$(NPM ) install; \
569
570
else \
570
571
cd tools/doc && node ../../$(NPM ) install; \
571
- fi;\
572
- [ -x $(NODE ) ] && $(NODE ) $(1 ) || node $(1 )
572
+ fi ;
573
+
574
+ gen-doc = [ -x $(NODE ) ] && $(NODE ) $(1 ) || node $(1 )
573
575
574
576
out/doc/api/% .json : doc/api/% .md
575
577
@$(call gen-doc, $(gen-json ) )
@@ -1155,6 +1157,7 @@ lint-clean:
1155
1157
install \
1156
1158
install-bin \
1157
1159
install-includes \
1160
+ install-yaml \
1158
1161
lint \
1159
1162
lint-clean \
1160
1163
lint-ci \
You can’t perform that action at this time.
0 commit comments