-
Notifications
You must be signed in to change notification settings - Fork 30k
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 link to ABI guide #23287
doc: add link to ABI guide #23287
Conversation
doc/api/n-api.md
Outdated
@@ -4596,6 +4596,7 @@ idempotent. | |||
|
|||
This API may only be called from the main thread. | |||
|
|||
[ABI Stability]: ../guides/abi-stability.md |
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.
It seems this should be an absolute link URL to work from the site.
https://nodejs.org/en/docs/guides/ is provided by the https://github.com/nodejs/nodejs.org/tree/master/locale/en/docs/guides , not by the https://github.com/nodejs/node/tree/master/doc/guides .
Provides a link from the N-API reference to the guide discussing ABI stability in greater depth.
3e05c57
to
f00d79b
Compare
@vsemozhetbyt I've updated the link, but of course as a result it's 404 until the guides get updated. I assume this happens with the next release of Node.js. |
I may be wrong, but should not we relocate the guide from https://github.com/nodejs/node/tree/master/doc/guides to https://github.com/nodejs/nodejs.org/tree/master/locale/en/docs/guides for it to be accessible from the https://nodejs.org/en/docs/guides/ ? Otherwise, we can link to the https://github.com/nodejs/node/blob/master/doc/guides/abi-stability.md directly, If I am not mistaken, docs in https://github.com/nodejs/node/tree/master/doc/guides are mostly for the Node.js Collaborators, while docs in the https://github.com/nodejs/nodejs.org/tree/master/locale/en/docs/guides are mostly for the Node.js users and developers. |
cc @nodejs/documentation and @nodejs/website re the question above. Should the difference be documented somewhere if it is valid? |
That's correct. If it's in |
Oh, and if it's a generalized guide for users, then it should go in a totally different repo: https://github.com/nodejs/nodejs.org/tree/master/locale/en/docs/guides |
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.
Items in doc/guides
do not end up on the website. They are for internal consumption. External-facing guides should be moved to https://github.com/nodejs/nodejs.org/tree/master/locale/en/docs/guides instead.
@Trott I've opened nodejs/nodejs.org#1828 and #23303 to move the doc. I guess this PR depends on those two landing. |
Blocked by nodejs/nodejs.org#1828. Once that lands, this can land. Fortunately, website PRs can be merged pretty quickly... (I don't think #23303 needs to land before this does.) |
Also: The whole "things called 'guides' are in two different places and mean subtly different things, and oh yeah the website is generated in this repo over here except for the docs which are generated over here".... If there's some way that information could have been something could have been surfaced naturally, I'd love to hear what it is. Because that stuff is confusing and probably only a few people know it. Maybe the Maybe a bot can comment on any PR that adds a new file to the Other ideas? |
Maybe it is worth to open an issue to discuss? |
nodejs/nodejs.org#1828 has now landed, so removing the "blocked" label. |
@vsemozhetbyt @nodejs/n-api PTAL |
Landed in 157d507. |
Provides a link from the N-API reference to the guide discussing ABI stability in greater depth. Re: nodejs/abi-stable-node#332 PR-URL: #23287 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Provides a link from the N-API reference to the guide discussing ABI stability in greater depth. Re: nodejs/abi-stable-node#332 PR-URL: #23287 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Provides a link from the N-API reference to the guide discussing ABI stability in greater depth. Re: nodejs/abi-stable-node#332 PR-URL: #23287 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Provides a link from the N-API reference to the guide discussing ABI stability in greater depth.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes