tools: build doc/api/all.html by combining generated HTML
Combine the toc and api contents from the generated doc/api/*.html files. This ensures that the single page version of the documentation exactly matches the individual pages.
Fixes #20100 (closed)
This pull request differs from https://github.com/nodejs/node/pull/21544 in that it is implemented using regular expressions and has no dependencies. See https://github.com/nodejs/node/pull/21544#issuecomment-400538286 for more context.
If this pull request is merged, the other will be deleted.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines