Skip to content

Commit 16eb7d3

Browse files
watildecjihrig
authored andcommitted
doc: fix doc styles
CONTRIBUTING.md + L857: Unused definition + L861: Unused definition + L863: Unused definition doc/api/assert.md + L719: Unused definition doc/api/async_hooks.md + L460: Missing code-language flag doc/api/child_process.md + L1362: Unused definition doc/api/dns.md + L674: Unused definition doc/api/esm.md + L178: Missing code-language flag doc/api/http.md + L1868: Unused definition + L1887: Unused definition + L1888: Unused definition + L1889: Unused definition + L1916: Unused definition + L1917: Unused definition doc/api/https.md + L260: Unused definition doc/api/os.md + L1226: Unused definition doc/api/process.md + L1888: Unused definition doc/api/stream.md + L2227: Definitions with the same identifier doc/guides/writing-and-running-benchmarks.md + L1: Missing newline character at end of file Refs: #12756 PR-URL: #16385 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 99fdc1d commit 16eb7d3

12 files changed

+3
-19
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,8 @@ By making a contribution to this project, I certify that:
854854
[Building guide]: ./BUILDING.md
855855
[CI (Continuous Integration) test run]: #ci-testing
856856
[Code of Conduct]: https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md
857-
[guide for writing tests in Node.js]: ./doc/guides/writing-tests.md
858857
[https://ci.nodejs.org/]: https://ci.nodejs.org/
859858
[IRC in the #node-dev channel]: https://webchat.freenode.net?channels=node-dev&uio=d4
860859
[Node.js help repository]: https://github.com/nodejs/help/issues
861-
[notes about the waiting time]: #waiting-until-the-pull-request-gets-landed
862860
[Onboarding guide]: ./doc/onboarding.md
863-
[on GitHub]: https://github.com/nodejs/node
864861
[Technical Steering Committee (TSC) repository]: https://github.com/nodejs/TSC/issues

doc/api/assert.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ assert(Object.is(str1 / 1, str2 / 1));
628628
For more information, see
629629
[MDN's guide on equality comparisons and sameness][mdn-equality-guide].
630630

631-
[`Error`]: errors.html#errors_class_error
632631
[`Error.captureStackTrace`]: errors.html#errors_error_capturestacktrace_targetobject_constructoropt
633632
[`Map`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map
634633
[`Object.is()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is

doc/api/async_hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ new Promise((resolve) => resolve(true)).then((a) => {});
457457

458458
calls the following callbacks:
459459

460-
```
460+
```text
461461
init for PROMISE with id 5, trigger id: 1
462462
promise resolve 5 # corresponds to resolve(true)
463463
init for PROMISE with id 6, trigger id: 5 # the Promise returned by then()

doc/api/child_process.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,6 @@ unavailable.
13721372
[`Error`]: errors.html#errors_class_error
13731373
[`EventEmitter`]: events.html#events_class_eventemitter
13741374
[`JSON.stringify` spec]: https://tc39.github.io/ecma262/#sec-json.stringify
1375-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
13761375
[`subprocess.connected`]: #child_process_subprocess_connected
13771376
[`subprocess.disconnect()`]: #child_process_subprocess_disconnect
13781377
[`subprocess.kill()`]: #child_process_subprocess_kill_signal

doc/api/dns.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,4 +671,3 @@ uses. For instance, _they do not use the configuration from `/etc/hosts`_.
671671
[Implementation considerations section]: #dns_implementation_considerations
672672
[rfc5952]: https://tools.ietf.org/html/rfc5952#section-6
673673
[supported `getaddrinfo` flags]: #dns_supported_getaddrinfo_flags
674-
[the official libuv documentation]: http://docs.libuv.org/en/latest/threadpool.html

doc/api/esm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export function resolve(specifier, parentModuleURL/*, defaultResolve */) {
175175

176176
With this loader, running:
177177

178-
```
178+
```console
179179
NODE_OPTIONS='--experimental-modules --loader ./custom-loader.mjs' node x.js
180180
```
181181

doc/api/http.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,6 @@ const req = http.request(options, (res) => {
19371937
```
19381938

19391939
[`'checkContinue'`]: #http_event_checkcontinue
1940-
[`'listening'`]: net.html#net_event_listening
19411940
[`'request'`]: #http_event_request
19421941
[`'response'`]: #http_event_response
19431942
[`Agent`]: #http_class_http_agent
@@ -1956,9 +1955,6 @@ const req = http.request(options, (res) => {
19561955
[`http.request()`]: #http_http_request_options_callback
19571956
[`message.headers`]: #http_message_headers
19581957
[`net.Server.close()`]: net.html#net_server_close_callback
1959-
[`net.Server.listen()`]: net.html#net_server_listen_handle_backlog_callback
1960-
[`net.Server.listen(path)`]: net.html#net_server_listen_path_backlog_callback
1961-
[`net.Server.listen(port)`]: net.html#net_server_listen_port_host_backlog_callback
19621958
[`net.Server`]: net.html#net_class_net_server
19631959
[`net.Socket`]: net.html#net_class_net_socket
19641960
[`net.createConnection()`]: net.html#net_net_createconnection_options_connectlistener
@@ -1984,5 +1980,3 @@ const req = http.request(options, (res) => {
19841980
[Readable Stream]: stream.html#stream_class_stream_readable
19851981
[Writable Stream]: stream.html#stream_class_stream_writable
19861982
[socket.unref()]: net.html#net_socket_unref
1987-
[unspecified IPv4 address]: https://en.wikipedia.org/wiki/0.0.0.0
1988-
[unspecified IPv6 address]: https://en.wikipedia.org/wiki/IPv6_address#Unspecified_address

doc/api/https.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ const req = https.request(options, (res) => {
268268
[`http.Server`]: http.html#http_class_http_server
269269
[`http.close()`]: http.html#http_server_close_callback
270270
[`http.get()`]: http.html#http_http_get_options_callback
271-
[`http.listen()`]: http.html#http_server_listen_port_hostname_backlog_callback
272271
[`http.request()`]: http.html#http_http_request_options_callback
273272
[`https.Agent`]: #https_class_https_agent
274273
[`https.request()`]: #https_https_request_options_callback

doc/api/os.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,5 +1186,4 @@ The following error codes are specific to the Windows operating system:
11861186

11871187
[`process.arch`]: process.html#process_process_arch
11881188
[`process.platform`]: process.html#process_process_platform
1189-
[OS Constants]: #os_os_constants
11901189
[uname(3)]: https://linux.die.net/man/3/uname

doc/api/process.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,6 @@ cases:
18381838
[`Error`]: errors.html#errors_class_error
18391839
[`EventEmitter`]: events.html#events_class_eventemitter
18401840
[`JSON.stringify` spec]: https://tc39.github.io/ecma262/#sec-json.stringify
1841-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
18421841
[`console.error()`]: console.html#console_console_error_data_args
18431842
[`console.log()`]: console.html#console_console_log_data_args
18441843
[`end()`]: stream.html#stream_writable_end_chunk_encoding_callback

doc/api/stream.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,6 @@ contain multi-byte characters.
22242224
[http-incoming-message]: http.html#http_class_http_incomingmessage
22252225
[zlib]: zlib.html
22262226
[hwm-gotcha]: #stream_highwatermark_discrepency_after_calling_readable_setencoding
2227-
[Readable]: #stream_class_stream_readable
22282227
[stream-_flush]: #stream_transform_flush_callback
22292228
[stream-_read]: #stream_readable_read_size_1
22302229
[stream-_transform]: #stream_transform_transform_chunk_encoding_callback

doc/guides/writing-and-running-benchmarks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,4 @@ Supported options keys are:
438438
[t-test]: https://en.wikipedia.org/wiki/Student%27s_t-test#Equal_or_unequal_sample_sizes.2C_unequal_variances
439439
[git-for-windows]: http://git-scm.com/download/win
440440
[nghttp2.org]: http://nghttp2.org
441-
[benchmark-ci]: https://github.com/nodejs/benchmarking/blob/master/docs/core_benchmarks.md
441+
[benchmark-ci]: https://github.com/nodejs/benchmarking/blob/master/docs/core_benchmarks.md

0 commit comments

Comments
 (0)