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: markdown links do not turn into real links #5322

Closed
jhamhader opened this issue Feb 19, 2016 · 14 comments
Closed

doc: markdown links do not turn into real links #5322

jhamhader opened this issue Feb 19, 2016 · 14 comments
Labels
doc Issues and PRs related to the documentations.

Comments

@jhamhader
Copy link
Contributor

Hey,

I noticed that in various docs, links are not shown and actual markdown appears instead.

Examples:

  • In tls.html:
    tlsSocket is the [tls.TLSSocket][] that the error originated from.
  • In net.html:
    The parameter backlog behaves the same as in [server.listen(port, \[host\], \[backlog\], \[callback\])][].
  • In cluster.html:
    When no more connections exist, see [server.close()][], the IPC channel to the worker will close allowing it to die gracefully.
  • In crypto.html:
    Use [crypto.getCurves()][] to obtain a list of available curve names.
@estliberitas
Copy link
Contributor

In crypto.html: Use [crypto.getCurves()][] to obtain a list of available curve names.

Already fixed but not landed yet by #5230.

@estliberitas
Copy link
Contributor

Also here: https://nodejs.org/docs/latest-v5.x/api/errors.html: [EvalError][] ... [RangeError][] ... [URIError][]

Update: will fix in separate PR. It's about doc tool
Another update: this is not about doc tool, I was wrong, but actually this would be good to fix with doc tool (using types parser) by adding

  • EvalError
  • RangeError
  • ReferenceError
  • SyntaxError
  • TypeError
  • URIError

to global types list, so we can write just {SyntaxError} and all.

Actually, I'm wondering why not make type parser produce such links with <code></code>...

@estliberitas
Copy link
Contributor

Also here: https://nodejs.org/docs/latest/api/console.html#console_console_dir_obj_options

Wondering if latest docs are not updated OR doc tool does not parse such links correctly.

Update: just checked with latest master locally, all is OK

@mscdex mscdex added the doc Issues and PRs related to the documentations. label Feb 19, 2016
@estliberitas
Copy link
Contributor

  • In net.html: The parameter backlog behaves the same as in [server.listen(port, [host], [backlog], [callback])][].

After debugging of marked package I found that it does not support links with ] character even if it's escaped. Regular expression responsible for parsing link definitions would not allow such case. The problem is in reference resolving part: \[([^\]]+)\]:. This means it will not parse things like [foo(\[bar\])].

Any thoughts on this? I can resolve this simply in a PR by removing [ and ] from link titles. But it would break meaning of those signatures a bit.

/cc @mscdex @thefourtheye guys I did not know who to ask, so asking you...

@thefourtheye
Copy link
Contributor

cc @nodejs/documentation

@estliberitas
Copy link
Contributor

@thefourtheye thx, now I know who to /cc 😉

@evanlucas
Copy link
Contributor

ah, just saw this. The net issues should be fixed by #5358

@estliberitas
Copy link
Contributor

tls and cluster links should be fixed by #5364.

silverwind pushed a commit that referenced this issue Feb 27, 2016
Fix missing links described in #5322.

PR-URL: #5364
Reviewed-By: Roman Reiss <me@silverwind.io>
rvagg pushed a commit that referenced this issue Feb 28, 2016
Fix missing links described in #5322.

PR-URL: #5364
Reviewed-By: Roman Reiss <me@silverwind.io>
@evanlucas
Copy link
Contributor

Closing as all of the listed broken links have been fixed. Thanks for reporting!

@jhamhader
Copy link
Contributor Author

@evanlucas Problem still exists in:

  • Crypto
  • Error
  • HTTP

@evanlucas
Copy link
Contributor

@jhamhader do you have links to them? I must be missing something. I'm not seeing them

@Knighton910
Copy link

@jhamhader could you link them here, because like @evanlucas mentioned, i just looked at the the issues and Pull Reqs pertaining to this issue and didn't spot anything. after you link them, well be sure to handle them.

@jhamhader
Copy link
Contributor Author

@stevemao
Copy link
Contributor

I confirm @jhamhader is correct.
Please reopen this.
PR income :)

stevemao added a commit to stevemao/node that referenced this issue Mar 10, 2016
silverwind pushed a commit that referenced this issue Mar 10, 2016
Fixes: #5322
PR-URL: #5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
evanlucas pushed a commit that referenced this issue Mar 14, 2016
Fixes: #5322
PR-URL: #5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
rvagg pushed a commit that referenced this issue Mar 16, 2016
Fixes: #5322
PR-URL: #5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
MylesBorins pushed a commit that referenced this issue Mar 17, 2016
Fix missing links described in #5322.

PR-URL: #5364
Reviewed-By: Roman Reiss <me@silverwind.io>
MylesBorins pushed a commit that referenced this issue Mar 17, 2016
Fixes: #5322
PR-URL: #5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
MylesBorins pushed a commit that referenced this issue Mar 21, 2016
Fixes: #5322
PR-URL: #5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
MylesBorins pushed a commit that referenced this issue Mar 21, 2016
Fix missing links described in #5322.

PR-URL: #5364
Reviewed-By: Roman Reiss <me@silverwind.io>
MylesBorins pushed a commit that referenced this issue Mar 21, 2016
Fixes: #5322
PR-URL: #5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.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

No branches or pull requests

7 participants