-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: fix relative links in net docs #5358
Conversation
They were not being processed as relative links.
/cc @nodejs/documentation |
LGTM. Looks like this was in the tree for quite some time. Did we switch the Markdown parser recently, or why is this being noticed now? |
@@ -723,8 +723,8 @@ Returns true if input is a version 6 IP address, otherwise returns false. | |||
[`pause()`]: #net_socket_pause | |||
[`resume()`]: #net_socket_resume | |||
[`server.getConnections()`]: #net_server_getconnections_callback | |||
[`server.listen(port, \[host\], \[backlog\], \[callback\])`]: #net_server_listen_port_hostname_backlog_callback | |||
[`socket.connect(options\[, connectListener\])`]: #net_socket_connect_options_connectlistener | |||
[`server.listen(port, host, backlog, callback)`]: #net_server_listen_port_hostname_backlog_callback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this be simply server.listen
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, the link signature of these methods include the arguments. How are these generated, by the way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@silverwind You mean, this tag could have been auto-generated with a tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think they are generated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The <a id>
's which these link to are certainly autogenerated from the doctool:
<h3>
server.listen(port[, hostname][, backlog][, callback])
<span>
<a class="mark" href="#net_server_listen_port_hostname_backlog_callback" id="net_server_listen_port_hostname_backlog_callback">#
</a>
</span>
</h3>
They long ids are necessary to link to different method signatures, and there can only be one id per element in HTML, so I think your suggestion is not possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and I just notice that I misread your suggestion completely, please disregard me :)
Ping @evanlucas, I'd also be in favor of shortening these link names to just |
Yea, the reason I didn't do that is because there are multiple |
Alright, landed in 1c30d60. |
They were not being processed as relative links. PR-URL: #5358 Reviewed-By: Roman Reiss <me@silverwind.io>
They were not being processed as relative links. PR-URL: #5358 Reviewed-By: Roman Reiss <me@silverwind.io>
Added the lts watch label... |
Great stuff guys/gals |
They were not being processed as relative links. PR-URL: #5358 Reviewed-By: Roman Reiss <me@silverwind.io>
They were not being processed as relative links. PR-URL: #5358 Reviewed-By: Roman Reiss <me@silverwind.io>
They were not being processed as relative links. Marked apparently does not like square brackets inside of relative links.