-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Potentially incorrect links at the bottom of the commonJs doc #57094
Comments
PS: additionally the |
The goal is definitely for those to be rendered, it would be quite useless to keep the anchors without showing the link to the actual docs. |
I thought the point of these were to have anchors with outdated id in this doc, so that old urls could still point to valid locations (for renamed sections etc...), so not something to be displayed, but just there so that urls with fragments would indeed find valid locations to scroll to I might be misunderstanding what these are for |
That's exactly it
Well you're wrong on that point, it would be rather useless to have the user scroll to the end of the document if there's nothing there. |
I see, sorry that's totally my bad, I've just only now noticed that they were linking to a different page! (I didn't notice that the current page is Ok then makes sense to me (I thought they were links to a location on the same page!) Sorry for the dumb mistake 🙂 🙇 |
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
Affected URL(s)
https://nodejs.org/docs/latest/api/modules.html#the-module-object_1, https://nodejs.org/docs/latest/api/modules.html#source-map-v3-support
Description of the problem
There are some links at the bottom of the commonjs doc that seem out of place to me:

In the md file they are prefixed by this comment:
node/doc/api/modules.md
Line 1257 in 1d8593e
which does leads me to believe that these should not be rendered in the page
About the comment
The same comment can be found in other parts of the codebase, the anchors/elements below such comment are indeed not rendered:
node/doc/api/esm.md
Lines 117 to 119 in 1d8593e
node/doc/api/esm.md
Lines 142 to 144 in 1d8593e
node/doc/api/module.md
Lines 1617 to 1619 in 1d8593e
cc @aduh95
The text was updated successfully, but these errors were encountered: