From e0a954e65798c393a67699cff1af6f96b684233a Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 27 Jun 2021 09:03:27 +0200 Subject: [PATCH] doc: remove file name from self-reference links Refs: https://github.com/nodejs/remark-preset-lint-node/pull/188 PR-URL: https://github.com/nodejs/node/pull/39165 Reviewed-By: Rich Trott Reviewed-By: Darshan Sen Reviewed-By: Harshitha K P --- doc/api/fs.md | 2 +- doc/api/process.md | 4 ++-- doc/api/readline.md | 4 ++-- doc/api/timers.md | 14 +++++++------- doc/api/tty.md | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 3f306ec7fb6be0..0418415eb8fc3f 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6743,7 +6743,7 @@ the file contents. [`fs.copyFile()`]: #fs_fs_copyfile_src_dest_mode_callback [`fs.createReadStream()`]: #fs_fs_createreadstream_path_options [`fs.createWriteStream()`]: #fs_fs_createwritestream_path_options -[`fs.exists()`]: fs.md#fs_fs_exists_path_callback +[`fs.exists()`]: #fs_fs_exists_path_callback [`fs.fstat()`]: #fs_fs_fstat_fd_options_callback [`fs.ftruncate()`]: #fs_fs_ftruncate_fd_len_callback [`fs.futimes()`]: #fs_fs_futimes_fd_atime_mtime_callback diff --git a/doc/api/process.md b/doc/api/process.md index dbc6c8d57360a2..b8c9d7b4b7ce03 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -3701,7 +3701,7 @@ cases: [`process.hrtime()`]: #process_process_hrtime_time [`process.hrtime.bigint()`]: #process_process_hrtime_bigint [`process.kill()`]: #process_process_kill_pid_signal -[`process.setUncaughtExceptionCaptureCallback()`]: process.md#process_process_setuncaughtexceptioncapturecallback_fn +[`process.setUncaughtExceptionCaptureCallback()`]: #process_process_setuncaughtexceptioncapturecallback_fn [`promise.catch()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch [`queueMicrotask()`]: globals.md#globals_queuemicrotask_callback [`readable.read()`]: stream.md#stream_readable_read_size @@ -3711,7 +3711,7 @@ cases: [`v8.setFlagsFromString()`]: v8.md#v8_v8_setflagsfromstring_flags [debugger]: debugger.md [deprecation code]: deprecations.md -[note on process I/O]: process.md#process_a_note_on_process_i_o +[note on process I/O]: #process_a_note_on_process_i_o [process.cpuUsage]: #process_process_cpuusage_previousvalue [process_emit_warning]: #process_process_emitwarning_warning_type_code_ctor [process_warning]: #process_event_warning diff --git a/doc/api/readline.md b/doc/api/readline.md index d67beab5d05922..a22939d869d85e 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -973,8 +973,8 @@ const { createInterface } = require('readline'); [TTY]: tty.md [TTY keybindings]: #readline_tty_keybindings [Writable]: stream.md#stream_writable_streams -[`'SIGCONT'`]: readline.md#readline_event_sigcont -[`'SIGTSTP'`]: readline.md#readline_event_sigtstp +[`'SIGCONT'`]: #readline_event_sigcont +[`'SIGTSTP'`]: #readline_event_sigtstp [`'line'`]: #readline_event_line [`fs.ReadStream`]: fs.md#fs_class_fs_readstream [`process.stdin`]: process.md#process_process_stdin diff --git a/doc/api/timers.md b/doc/api/timers.md index 820e6a282aeb01..89f9ad312e33c4 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -472,12 +472,12 @@ const interval = 100; [Event Loop]: https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout [`AbortController`]: globals.md#globals_class_abortcontroller [`TypeError`]: errors.md#errors_class_typeerror -[`clearImmediate()`]: timers.md#timers_clearimmediate_immediate -[`clearInterval()`]: timers.md#timers_clearinterval_timeout -[`clearTimeout()`]: timers.md#timers_cleartimeout_timeout -[`setImmediate()`]: timers.md#timers_setimmediate_callback_args -[`setInterval()`]: timers.md#timers_setinterval_callback_delay_args -[`setTimeout()`]: timers.md#timers_settimeout_callback_delay_args +[`clearImmediate()`]: #timers_clearimmediate_immediate +[`clearInterval()`]: #timers_clearinterval_timeout +[`clearTimeout()`]: #timers_cleartimeout_timeout +[`setImmediate()`]: #timers_setimmediate_callback_args +[`setInterval()`]: #timers_setinterval_callback_delay_args +[`setTimeout()`]: #timers_settimeout_callback_delay_args [`util.promisify()`]: util.md#util_util_promisify_original [`worker_threads`]: worker_threads.md -[primitive]: timers.md#timers_timeout_symbol_toprimitive +[primitive]: #timers_timeout_symbol_toprimitive diff --git a/doc/api/tty.md b/doc/api/tty.md index 3cf37ff9cb7cdf..df050c8ae9e96f 100644 --- a/doc/api/tty.md +++ b/doc/api/tty.md @@ -211,10 +211,10 @@ added: v0.7.7 * Returns: {number[]} -`writeStream.getWindowSize()` returns the size of the [TTY](tty.md) +`writeStream.getWindowSize()` returns the size of the TTY corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number -of columns and rows in the corresponding [TTY](tty.md). +of columns and rows in the corresponding TTY. ### `writeStream.hasColors([count][, env])`