From 2ae45240a21f6b78e5ddbb3a2917d5e4ecdb8361 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Mon, 2 Jul 2018 00:38:05 +0300 Subject: [PATCH] doc: fix some links PR-URL: https://github.com/nodejs/node/pull/21619 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- doc/api/deprecations.md | 2 +- doc/api/errors.md | 2 +- doc/api/fs.md | 4 ++-- doc/api/path.md | 2 +- doc/api/worker_threads.md | 8 ++++---- tools/doc/type-parser.js | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index de469ab0d82..1a8aa8053bc 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1037,7 +1037,7 @@ The option `produceCachedData` has been deprecated. Use [`fs.lchmodSync(path, mode)`]: fs.html#fs_fs_lchmodsync_path_mode [`fs.read()`]: fs.html#fs_fs_read_fd_buffer_offset_length_position_callback [`fs.readSync()`]: fs.html#fs_fs_readsync_fd_buffer_offset_length_position -[`fs.stat()`]: fs.html#fs_fs_stat_path_callback +[`fs.stat()`]: fs.html#fs_fs_stat_path_options_callback [`http.get()`]: http.html#http_http_get_options_callback [`http.request()`]: http.html#http_http_request_options_callback [`https.get()`]: https.html#https_https_get_options_callback diff --git a/doc/api/errors.md b/doc/api/errors.md index cce3b3b8460..1e2730db4f4 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1828,7 +1828,7 @@ Creation of a [`zlib`][] object failed due to incorrect configuration. [`cipher.getAuthTag()`]: crypto.html#crypto_cipher_getauthtag [`Class: assert.AssertionError`]: assert.html#assert_class_assert_assertionerror [`crypto.scrypt()`]: crypto.html#crypto_crypto_scrypt_password_salt_keylen_options_callback -[`crypto.scryptSync()`]: crypto.html#crypto_crypto_scryptSync_password_salt_keylen_options +[`crypto.scryptSync()`]: crypto.html#crypto_crypto_scryptsync_password_salt_keylen_options [`crypto.timingSafeEqual()`]: crypto.html#crypto_crypto_timingsafeequal_a_b [`dgram.createSocket()`]: dgram.html#dgram_dgram_createsocket_options_callback [`ERR_INVALID_ARG_TYPE`]: #ERR_INVALID_ARG_TYPE diff --git a/doc/api/fs.md b/doc/api/fs.md index 361114ef194..ac6ddf52844 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4617,14 +4617,14 @@ the file contents. [`inotify(7)`]: http://man7.org/linux/man-pages/man7/inotify.7.html [`kqueue(2)`]: https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 [`net.Socket`]: net.html#net_class_net_socket -[`stat()`]: fs.html#fs_fs_stat_path_callback +[`stat()`]: fs.html#fs_fs_stat_path_options_callback [`util.promisify()`]: util.html#util_util_promisify_original [Caveats]: #fs_caveats [Common System Errors]: errors.html#errors_common_system_errors [FS Constants]: #fs_fs_constants_1 [MDN-Date]: https://developer.mozilla.org/en-US/JavaScript/Reference/Global_Objects/Date [MDN-Number]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type -[MSDN-Rel-Path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths +[MSDN-Rel-Path]: https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#fully-qualified-vs-relative-paths [Readable Streams]: stream.html#stream_class_stream_readable [Writable Stream]: stream.html#stream_class_stream_writable [inode]: https://en.wikipedia.org/wiki/Inode diff --git a/doc/api/path.md b/doc/api/path.md index 51202195f3c..c6960c7ee47 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -563,5 +563,5 @@ of the `path` methods. [`path.posix`]: #path_path_posix [`path.sep`]: #path_path_sep [`path.win32`]: #path_path_win32 -[MSDN-Rel-Path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths +[MSDN-Rel-Path]: https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#fully-qualified-vs-relative-paths [namespace-prefixed path]: https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 9578403c5ca..d20fd0fce57 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -296,7 +296,7 @@ if (isMainThread) { console.log('received:', value); }); } else { - require('worker_threads').once('workerMessage', (value) => { + require('worker_threads').once('message', (value) => { assert(value.hereIsYourPort instanceof MessagePort); value.hereIsYourPort.postMessage('the worker is sending this'); value.hereIsYourPort.close(); @@ -377,7 +377,7 @@ added: v10.5.0 * `transferList` {Object[]} Send a message to the worker that will be received via -[`require('worker_threads').on('workerMessage')`][]. +[`require('worker_threads').on('message')`][]. See [`port.postMessage()`][] for more details. ### worker.ref() @@ -467,7 +467,7 @@ active handle in the event system. If the worker is already `unref()`ed calling [`port.postMessage()`]: #worker_threads_port_postmessage_value_transferlist [`Worker`]: #worker_threads_class_worker [`worker.terminate()`]: #worker_threads_worker_terminate_callback -[`worker.postMessage()`]: #worker_threads_worker_postmessage_value_transferlist_1 +[`worker.postMessage()`]: #worker_threads_worker_postmessage_value_transferlist [`worker.on('message')`]: #worker_threads_event_message_1 [`worker.threadId`]: #worker_threads_worker_threadid_1 [`port.on('message')`]: #worker_threads_event_message @@ -480,7 +480,7 @@ active handle in the event system. If the worker is already `unref()`ed calling [`process.stdout`]: process.html#process_process_stdout [`process.title`]: process.html#process_process_title [`require('worker_threads').workerData`]: #worker_threads_worker_workerdata -[`require('worker_threads').on('workerMessage')`]: #worker_threads_event_workermessage +[`require('worker_threads').on('message')`]: #worker_threads_event_message_1 [`require('worker_threads').postMessage()`]: #worker_threads_worker_postmessage_value_transferlist [`require('worker_threads').isMainThread`]: #worker_threads_worker_ismainthread [`require('worker_threads').parentPort`]: #worker_threads_worker_parentport diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js index 0fd99fa83ed..151235c7277 100644 --- a/tools/doc/type-parser.js +++ b/tools/doc/type-parser.js @@ -118,7 +118,7 @@ const customTypesMap = { 'URL': 'url.html#url_the_whatwg_url_api', 'URLSearchParams': 'url.html#url_class_urlsearchparams', - 'MessagePort': 'worker.html#worker_class_messageport' + 'MessagePort': 'worker_threads.html#worker_threads_class_messageport' }; const arrayPart = /(?:\[])+$/;