Files
node/doc/api
Joyee CheungandAntoine du Hamel b36e55a23e build: make test-addons dependency-free
`make test-addons` used to depend on a markdown parser and then
doc-kit to extract C++ addon examples from addons.md by guessing
the file contents based on headings. This is hacky and brittle.
The introduction of doc-kit also means tests intended for verifying
the binary like `make test-only` now need to support doc-building
toolchains e.g. minifier, highlighter, and indirect dependencies
that rely on prebuilt-addon/wasm, which defeats the purpose
and makes it harder to run for experimental platforms.

This patch adds explicit
`<!-- addon-verify-file dir/filename -->` markers in addons.md to
locate extractable code blocks, avoiding fragile heuristics based on
heading text or code block order and eliminating the dependency
with simpler parsing.

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62388
Fixes: https://github.com/nodejs/node/issues/62385
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-05-05 16:19:34 +02:00
..
2026-05-04 08:27:41 -03:00
2026-05-05 16:19:26 +02:00
2025-07-15 17:18:42 +00:00
2024-11-01 03:43:53 +00:00
2026-05-05 16:19:31 +02:00
2026-05-05 16:19:31 +02:00
2026-02-24 10:24:26 -05:00
2025-11-08 17:09:29 +00:00
2026-05-05 16:19:27 +02:00
2025-12-16 20:31:28 +00:00
2026-05-04 08:27:41 -03:00
2026-02-09 15:32:50 +00:00
2025-07-15 17:18:42 +00:00
2025-07-15 17:18:42 +00:00
2026-05-04 08:27:41 -03:00
2026-05-05 16:19:30 +02:00
2025-06-09 23:45:29 +02:00
2025-07-15 17:18:42 +00:00
2025-07-15 17:18:42 +00:00
2026-05-05 16:19:22 +02:00
2026-05-05 16:19:22 +02:00
2026-03-22 21:48:57 +00:00
2025-12-16 20:31:28 +00:00
2026-05-05 16:19:22 +02:00