GeezerVison is showing github.com — doc: remove problematic auto-linking of curl man pages · nodejs/node@066148d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/repl.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -741,7 +741,7 @@ For an example of running a "full-featured" (`terminal`) REPL over |
741 | 741 | a `net.Server` and `net.Socket` instance, see: |
742 | 742 | <https://gist.github.com/TooTallNate/2209310>. |
743 | 743 |
|
744 | | -For an example of running a REPL instance over [curl(1)][], see: |
| 744 | +For an example of running a REPL instance over [`curl(1)`][], see: |
745 | 745 | <https://gist.github.com/TooTallNate/2053342>. |
746 | 746 |
|
747 | 747 | [ZSH]: https://en.wikipedia.org/wiki/Z_shell |
@@ -757,5 +757,5 @@ For an example of running a REPL instance over [curl(1)][], see: |
757 | 757 | [`util.inspect()`]: util.html#util_util_inspect_object_options |
758 | 758 | [`reverse-i-search`]: #repl_reverse_i_search |
759 | 759 | [TTY keybindings]: readline.html#readline_tty_keybindings |
760 | | -[curl(1)]: https://curl.haxx.se/docs/manpage.html |
| 760 | +[`curl(1)`]: https://curl.haxx.se/docs/manpage.html |
761 | 761 | [stream]: stream.html |
Collapse file
Copy file name to clipboardExpand all lines: tools/doc/html.js -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -126,7 +126,6 @@ function preprocessText({ nodeVersion }) { |
126 | 126 |
|
127 | 127 | // Syscalls which appear in the docs, but which only exist in BSD / macOS. |
128 | 128 | const BSD_ONLY_SYSCALLS = new Set(['lchmod']); |
129 | | -const HAXX_ONLY_SYSCALLS = new Set(['curl']); |
130 | 129 | const MAN_PAGE = /(^|\s)([a-z.]+)\((\d)([a-z]?)\)/gm; |
131 | 130 |
|
132 | 131 | // Handle references to man pages, eg "open(2)" or "lchmod(2)". |
@@ -143,9 +142,6 @@ function linkManPages(text) { |
143 | 142 | return `${beginning}<a href="https://www.freebsd.org/cgi/man.cgi` + |
144 | 143 | `?query=${name}&sektion=${number}">${displayAs}</a>`; |
145 | 144 | } |
146 | | - if (HAXX_ONLY_SYSCALLS.has(name)) { |
147 | | - return `${beginning}<a href="https://${name}.haxx.se/docs/manpage.html">${displayAs}</a>`; |
148 | | - } |
149 | 145 |
|
150 | 146 | return `${beginning}<a href="http://man7.org/linux/man-pages/man${number}` + |
151 | 147 | `/${name}.${number}${optionalCharacter}.html">${displayAs}</a>`; |
|