From 8f39b24b1b92ae18dcfefc57a5bba4166bb56a73 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Wed, 17 Jan 2018 23:22:48 +0200 Subject: [PATCH] doc: dedupe links Replace some repeated full links with concise ones and bottom references. --- doc/api/errors.md | 17 +++++++------- doc/api/n-api.md | 59 ++++++++++++++++++++--------------------------- 2 files changed, 34 insertions(+), 42 deletions(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index 4bfce90bced283..c42cdead2a5418 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1193,8 +1193,8 @@ is not supported. ### ERR_INVALID_SYNC_FORK_INPUT A `Buffer`, `Uint8Array` or `string` was provided as stdio input to a -synchronous fork. See the documentation for the -[`child_process`](child_process.html) module for more information. +synchronous fork. See the documentation for the [`child_process`][] module +for more information. ### ERR_INVALID_THIS @@ -1250,22 +1250,22 @@ An attempt was made to use an IPC communication channel that was already closed. ### ERR_IPC_DISCONNECTED An attempt was made to disconnect an IPC communication channel that was already -disconnected. See the documentation for the -[`child_process`](child_process.html) module for more information. +disconnected. See the documentation for the [`child_process`][] module +for more information. ### ERR_IPC_ONE_PIPE An attempt was made to create a child Node.js process using more than one IPC -communication channel. See the documentation for the -[`child_process`](child_process.html) module for more information. +communication channel. See the documentation for the [`child_process`][] module +for more information. ### ERR_IPC_SYNC_FORK An attempt was made to open an IPC communication channel with a synchronously -forked Node.js process. See the documentation for the -[`child_process`](child_process.html) module for more information. +forked Node.js process. See the documentation for the [`child_process`][] module +for more information. ### ERR_METHOD_NOT_IMPLEMENTED @@ -1650,6 +1650,7 @@ An attempt was made to use a `zlib` object after it has already been closed. Creation of a [`zlib`][] object failed due to incorrect configuration. [`--force-fips`]: cli.html#cli_force_fips +[`child_process`]: child_process.html [`cipher.getAuthTag()`]: crypto.html#crypto_cipher_getauthtag [`crypto.timingSafeEqual()`]: crypto.html#crypto_crypto_timingsafeequal_a_b [`dgram.createSocket()`]: dgram.html#dgram_dgram_createsocket_options_callback diff --git a/doc/api/n-api.md b/doc/api/n-api.md index b868bb94ba9cc3..3e32ce0701fbf3 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -1016,8 +1016,7 @@ typedef enum { This represents the underlying binary scalar datatype of the TypedArray. Elements of this enum correspond to -[Section 22.2](https://tc39.github.io/ecma262/#sec-typedarray-objects) -of the [ECMAScript Language Specification][]. +[Section 22.2][] of the [ECMAScript Language Specification][]. ### Object Creation Functions #### napi_create_array @@ -1035,8 +1034,7 @@ Returns `napi_ok` if the API succeeded. This API returns an N-API value corresponding to a JavaScript Array type. JavaScript arrays are described in -[Section 22.1](https://tc39.github.io/ecma262/#sec-array-objects) of the -ECMAScript Language Specification. +[Section 22.1][] of the ECMAScript Language Specification. #### napi_create_array_with_length