File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed
Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -840,8 +840,28 @@ out/doc/api/%.html out/doc/api/%.json: doc/api/%.md tools/doc/node_modules | out
840840 ) \
841841
842842out/doc/api/all.html : $(apidocs_html ) | out/doc/api
843+ $(call available-node, \
844+ $(NPX ) --prefix tools/doc doc-kit generate \
845+ -t legacy-html-all \
846+ -i doc/api/* .md \
847+ --ignore $(skip_apidoc_files ) \
848+ -o $(@D ) \
849+ -c ./CHANGELOG.md \
850+ -v $(VERSION ) \
851+ --index doc/api/index.md \
852+ ) \
843853
844854out/doc/api/all.json : $(apidocs_json ) | out/doc/api
855+ $(call available-node, \
856+ $(NPX ) --prefix tools/doc doc-kit generate \
857+ -t legacy-json-all \
858+ -i doc/api/* .md \
859+ --ignore $(skip_apidoc_files ) \
860+ -o $(@D ) \
861+ -c ./CHANGELOG.md \
862+ -v $(VERSION ) \
863+ --index doc/api/index.md \
864+ ) \
845865
846866.PHONY : docopen
847867docopen : doc-only # # Open the documentation in a web browser.
@@ -1354,12 +1374,7 @@ tools/.mdlintstamp: tools/lint-md/node_modules/remark-parse/package.json $(LINT_
13541374 @touch $@
13551375
13561376.PHONY : lint-md
1357- lint-md : lint-js-doc lint-docs | tools/.mdlintstamp # # Lint the markdown documents maintained by us in the codebase.
1358-
1359- .PHONY : lint-docs
1360- lint-docs : tools/doc/node_modules
1361- $(info Running API Doc linter...)
1362- $(call available-node, $(NPX ) --prefix tools/doc doc-kit lint -i doc/api/* .md)
1377+ lint-md : lint-js-doc | tools/.mdlintstamp # # Lint the markdown documents maintained by us in the codebase.
13631378
13641379run-format-md = tools/lint-md/lint-md.mjs --format $(LINT_MD_FILES )
13651380.PHONY : format-md
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ for (const name of actualDocs) {
3434}
3535
3636const toc = fs . readFileSync ( new URL ( './index.html' , apiURL ) , 'utf8' ) ;
37- const re = / h r e f = " ( [ ^ / ] + \. h t m l ) " / ;
37+ const re = / h r e f = ( " ( [ ^ / ] + \. h t m l ) " | ( [ ^ / ] + \. h t m l ) ) / ;
3838const globalRe = new RegExp ( re , 'g' ) ;
3939const links = toc . match ( globalRe ) ;
4040assert . notStrictEqual ( links , null ) ;
You can’t perform that action at this time.
0 commit comments