Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit ef87913

Browse files
watildeaddaleax
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: nodejs/node#12756 PR-URL: nodejs/node#16385 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent eb10df6 commit ef87913

11 files changed

+3
-16
lines changed

doc/api/assert.md

-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ assert(Object.is(str1 / 1, str2 / 1));
716716
For more information, see
717717
[MDN's guide on equality comparisons and sameness][mdn-equality-guide].
718718

719-
[`Error`]: errors.html#errors_class_error
720719
[`Error.captureStackTrace`]: errors.html#errors_error_capturestacktrace_targetobject_constructoropt
721720
[`Map`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map
722721
[`Object.is()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is

doc/api/async_hooks.md

+1-1
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

-1
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,6 @@ unavailable.
13591359
[`Error`]: errors.html#errors_class_error
13601360
[`EventEmitter`]: events.html#events_class_eventemitter
13611361
[`JSON.stringify` spec]: https://tc39.github.io/ecma262/#sec-json.stringify
1362-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
13631362
[`subprocess.connected`]: #child_process_subprocess_connected
13641363
[`subprocess.disconnect()`]: #child_process_subprocess_disconnect
13651364
[`subprocess.kill()`]: #child_process_subprocess_kill_signal

doc/api/dns.md

-1
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

+1-1
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

-6
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,6 @@ const req = http.request(options, (res) => {
18681868
```
18691869

18701870
[`'checkContinue'`]: #http_event_checkcontinue
1871-
[`'listening'`]: net.html#net_event_listening
18721871
[`'request'`]: #http_event_request
18731872
[`'response'`]: #http_event_response
18741873
[`Agent`]: #http_class_http_agent
@@ -1888,9 +1887,6 @@ const req = http.request(options, (res) => {
18881887
[`http.request()`]: #http_http_request_options_callback
18891888
[`message.headers`]: #http_message_headers
18901889
[`net.Server.close()`]: net.html#net_server_close_callback
1891-
[`net.Server.listen()`]: net.html#net_server_listen_handle_backlog_callback
1892-
[`net.Server.listen(path)`]: net.html#net_server_listen_path_backlog_callback
1893-
[`net.Server.listen(port)`]: net.html#net_server_listen_port_host_backlog_callback
18941890
[`net.Server`]: net.html#net_class_net_server
18951891
[`net.Socket`]: net.html#net_class_net_socket
18961892
[`net.createConnection()`]: net.html#net_net_createconnection_options_connectlistener
@@ -1917,5 +1913,3 @@ const req = http.request(options, (res) => {
19171913
[Readable Stream]: stream.html#stream_class_stream_readable
19181914
[Writable Stream]: stream.html#stream_class_stream_writable
19191915
[socket.unref()]: net.html#net_socket_unref
1920-
[unspecified IPv4 address]: https://en.wikipedia.org/wiki/0.0.0.0
1921-
[unspecified IPv6 address]: https://en.wikipedia.org/wiki/IPv6_address#Unspecified_address

doc/api/https.md

-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ const req = https.request(options, (res) => {
257257
[`http.Server`]: http.html#http_class_http_server
258258
[`http.close()`]: http.html#http_server_close_callback
259259
[`http.get()`]: http.html#http_http_get_options_callback
260-
[`http.listen()`]: http.html#http_server_listen_port_hostname_backlog_callback
261260
[`http.request()`]: http.html#http_http_request_options_callback
262261
[`https.Agent`]: #https_class_https_agent
263262
[`https.request()`]: #https_https_request_options_callback

doc/api/os.md

-1
Original file line numberDiff line numberDiff line change
@@ -1223,5 +1223,4 @@ information.
12231223

12241224
[`process.arch`]: process.html#process_process_arch
12251225
[`process.platform`]: process.html#process_process_platform
1226-
[OS Constants]: #os_os_constants
12271226
[uname(3)]: https://linux.die.net/man/3/uname

doc/api/process.md

-1
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,6 @@ cases:
19111911
[`Error`]: errors.html#errors_class_error
19121912
[`EventEmitter`]: events.html#events_class_eventemitter
19131913
[`JSON.stringify` spec]: https://tc39.github.io/ecma262/#sec-json.stringify
1914-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
19151914
[`console.error()`]: console.html#console_console_error_data_args
19161915
[`console.log()`]: console.html#console_console_log_data_args
19171916
[`end()`]: stream.html#stream_writable_end_chunk_encoding_callback

doc/api/stream.md

-1
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

+1-1
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)