Skip to content
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: add internal links and backticks around names #4054

Closed
wants to merge 2 commits into from
Closed

doc: add internal links and backticks around names #4054

wants to merge 2 commits into from

Conversation

svenheden
Copy link

I noticed some inconsistencies in the docs that I've fixed in these commits.

  • Added backticks around all names
  • Added single quotes around all event names
  • Added parenthesis after function names
  • Added internal links between different sections
  • Added external links to MDN for some JavaScript references
  • Sorted the link definitions alphabetically

@mscdex mscdex added http Issues or PRs related to the http subsystem. doc Issues and PRs related to the documentations. labels Nov 28, 2015
@JungMinu
Copy link
Member

would you squash the commits?

@Trott
Copy link
Member

Trott commented Nov 28, 2015

/cc @nodejs/documentation

@svenheden
Copy link
Author

Sure @JungMinu, I’ve squashed them and force pushed now.

@svenheden svenheden changed the title doc: add internal links and backticks around names in the http docs doc: add internal links and backticks around names Nov 29, 2015
@cjihrig
Copy link
Contributor

cjihrig commented Nov 30, 2015

Did we ever decide on a policy for linking out to third parties such as MDN and unix man pages? Also, 27 commits still seems a bit much.

@svenheden
Copy link
Author

The reason I added links to MDN was because there was already 5 links to it from other parts of the docs, so I figured you thought it was a reliable source.

There's one commit per "page", would one PR per page have been better, or one commit with all pages in it?

@silverwind silverwind removed the http Issues or PRs related to the http subsystem. label Nov 30, 2015
@rvagg
Copy link
Member

rvagg commented Nov 30, 2015

The (unfortunate) precedent for one-commit per page was set in #3662.

I'm +1 on links to MDN, Wikipedia and authoritative sources (like openssl and libuv) where we know the URLs will be consistent over time. I'm concerned about links to man pages as there's no good authoritative source for those, we seem to be using man7.org and I'm not sure why that was chosen.

I'm also a strong +1 on switching to https in links where possible. Some of the Wikipedia links in this PR are http for example, they'll be redirected when you get to Wikipedia but leakage has already occurred with a plaintext redirect.

@svenheden
Copy link
Author

I didn't add any Wikipedia links in this PR (but sorted the link definitions so it might look that way), but I could go through the Wikipedia links and update them if you like.

Do you want me to squash the 27 commits into 1?

@silverwind
Copy link
Contributor

I'm fine with linking to MDN as it is the most user-friendly resource. Technically, one could link to spec documents, but these are often way to verbose for the average user. I'd prefer all of this in a single commit. Also +1 for correcting links to https where possible, but that could be done in a seperate commit.

jpersson added 2 commits December 2, 2015 11:22
* add backticks around names
* add single quotes around event names
* add parenthesis after function names
* add internal links between different sections
* add external links to MDN for some JavaScript references
* sort the link definitions alphabetically
@svenheden
Copy link
Author

Cool, I've squashed it to one commit now and updated the http:// links to https:// where possible.

@cjihrig
Copy link
Contributor

cjihrig commented Dec 2, 2015

Rubber stamp LGTM

@silverwind
Copy link
Contributor

LGTM, nice work!

@jasnell
Copy link
Member

jasnell commented Dec 3, 2015

LGTM

jasnell pushed a commit that referenced this pull request Dec 3, 2015
* add backticks around names
* add single quotes around event names
* add parenthesis after function names
* add internal links between different sections
* add external links to MDN for some JavaScript references
* sort the link definitions alphabetically

PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
jasnell pushed a commit that referenced this pull request Dec 3, 2015
PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
@jasnell
Copy link
Member

jasnell commented Dec 3, 2015

Landed in 14b3aab and 7e4f22c

@jasnell jasnell closed this Dec 3, 2015
@svenheden svenheden deleted the doc/internal-links branch December 3, 2015 21:42
rvagg pushed a commit that referenced this pull request Dec 5, 2015
* add backticks around names
* add single quotes around event names
* add parenthesis after function names
* add internal links between different sections
* add external links to MDN for some JavaScript references
* sort the link definitions alphabetically

PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
rvagg pushed a commit that referenced this pull request Dec 5, 2015
PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
@rvagg rvagg mentioned this pull request Dec 17, 2015
MylesBorins pushed a commit that referenced this pull request Dec 29, 2015
* add backticks around names
* add single quotes around event names
* add parenthesis after function names
* add internal links between different sections
* add external links to MDN for some JavaScript references
* sort the link definitions alphabetically

PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
rvagg pushed a commit that referenced this pull request Jan 15, 2016
PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
@rvagg
Copy link
Member

rvagg commented Jan 15, 2016

landed second commit from here on v4.x-staging @ 476ac24, only one made it last time / @thealphanerd

@MylesBorins
Copy link
Contributor

bah... sorry about that. I'm playing with some ideas about how this could be automated to minimize on human error.

Thanks for taking the time to audit!

@jasnell
Copy link
Member

jasnell commented Jan 15, 2016

+1 for automation. @thealphanerd and I have discussed it a few times and the pain is real.

MylesBorins pushed a commit that referenced this pull request Jan 19, 2016
* add backticks around names
* add single quotes around event names
* add parenthesis after function names
* add internal links between different sections
* add external links to MDN for some JavaScript references
* sort the link definitions alphabetically

PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
MylesBorins pushed a commit that referenced this pull request Jan 19, 2016
PR-URL: #4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
@MylesBorins MylesBorins mentioned this pull request Jan 19, 2016
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
* add backticks around names
* add single quotes around event names
* add parenthesis after function names
* add internal links between different sections
* add external links to MDN for some JavaScript references
* sort the link definitions alphabetically

PR-URL: nodejs#4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
PR-URL: nodejs#4054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants