Skip to content

Commit 40719ff

Browse files
RafaelGSSacidiney
authored andcommitted
build: add skip_apidoc_files and include QUIC
PR-URL: nodejs#56941 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent b1de398 commit 40719ff

7 files changed

+14
-12
lines changed

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,9 @@ test-v8 test-v8-intl test-v8-benchmarks test-v8-all:
780780
endif
781781

782782
apidoc_dirs = out/doc out/doc/api out/doc/api/assets
783-
apidoc_sources = $(wildcard doc/api/*.md)
783+
skip_apidoc_files = doc/api/quic.md
784+
785+
apidoc_sources = $(filter-out $(skip_apidoc_files), $(wildcard doc/api/*.md))
784786
apidocs_html = $(addprefix out/,$(apidoc_sources:.md=.html))
785787
apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
786788

doc/api/cli.md

-9
Original file line numberDiff line numberDiff line change
@@ -993,14 +993,6 @@ If the ES module being `require()`'d contains top-level `await`, this flag
993993
allows Node.js to evaluate the module, try to locate the
994994
top-level awaits, and print their location to help users find them.
995995

996-
### `--experimental-quic`
997-
998-
<!--
999-
added: v23.8.0
1000-
-->
1001-
1002-
Enables the experimental `node:quic` built-in module.
1003-
1004996
### `--experimental-require-module`
1005997

1006998
<!-- YAML
@@ -3203,7 +3195,6 @@ one is included in the list below.
32033195
* `--experimental-loader`
32043196
* `--experimental-modules`
32053197
* `--experimental-print-required-tla`
3206-
* `--experimental-quic`
32073198
* `--experimental-require-module`
32083199
* `--experimental-shadow-realm`
32093200
* `--experimental-specifier-resolution`

doc/contributing/internal-api.md

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ application usage.
1414

1515
Enables debugging of `ArrayBuffer` allocations.
1616

17+
#### `--experimental-quic`
18+
19+
Enable QUIC Protocol (under development)
20+
1721
#### `--expose-internals`
1822

1923
Allows the usage of `internal/*` modules, granting access to internal Node.js functionality.

src/node_options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
442442
kAllowedInEnvvar,
443443
true);
444444
AddOption("--experimental-quic",
445-
"experimental QUIC API",
445+
"" /* undocumented until its development */,
446446
&EnvironmentOptions::experimental_quic,
447447
kAllowedInEnvvar);
448448
AddOption("--experimental-webstorage",

test/doctool/test-make-doc.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ const expectedJsons = linkedHtmls
4646
.map((name) => name.replace('.html', '.json'));
4747
const expectedDocs = linkedHtmls.concat(expectedJsons);
4848
const renamedDocs = ['policy.json', 'policy.html'];
49+
const skipedDocs = ['quic.json', 'quic.html'];
4950

5051
// Test that all the relative links in the TOC match to the actual documents.
5152
for (const expectedDoc of expectedDocs) {
53+
if (skipedDocs.includes(expectedDoc)) continue;
5254
assert.ok(actualDocs.includes(expectedDoc), `${expectedDoc} does not exist`);
5355
}
5456

test/parallel/test-cli-node-options-docs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ for (const [, envVar, config] of nodeOptionsCC.matchAll(addOptionRE)) {
101101
}
102102

103103
// NODE_OPTIONS
104-
if (isInNodeOption && !hasTrueAsDefaultValue && new RegExp(`\`${envVar}\``).test(nodeOptionsText) === false) {
104+
if (isInNodeOption && !hasTrueAsDefaultValue &&
105+
new RegExp(`\`${envVar}\``).test(nodeOptionsText) === false) {
105106
assert(false, `Should have option ${envVar} in NODE_OPTIONS documented`);
106107
}
107108

test/parallel/test-process-env-allowed-flags-are-documented.js

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ assert(undocumented.delete('--verify-base-objects'));
125125
assert(undocumented.delete('--no-verify-base-objects'));
126126
assert(undocumented.delete('--trace-promises'));
127127
assert(undocumented.delete('--no-trace-promises'));
128+
assert(undocumented.delete('--experimental-quic'));
129+
assert(undocumented.delete('--no-experimental-quic'));
128130

129131
// Remove negated versions of the flags.
130132
for (const flag of undocumented) {

0 commit comments

Comments
 (0)