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 link to ABI guide #23287

Closed

Conversation

gabrielschulhof
Copy link
Contributor

Provides a link from the N-API reference to the guide discussing ABI stability in greater depth.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. labels Oct 6, 2018
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
Copy link
Contributor

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.
@gabrielschulhof
Copy link
Contributor Author

@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.

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Oct 6, 2018

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.

@vsemozhetbyt
Copy link
Contributor

cc @nodejs/documentation and @nodejs/website re the question above. Should the difference be documented somewhere if it is valid?

@Trott
Copy link
Member

Trott commented Oct 6, 2018

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.

That's correct. If it's in doc/guides then it's for us. If it's in doc/api then it's for users.

@Trott
Copy link
Member

Trott commented Oct 6, 2018

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

Copy link
Member

@Trott Trott left a 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.

@gabrielschulhof
Copy link
Contributor Author

@Trott I've opened nodejs/nodejs.org#1828 and #23303 to move the doc. I guess this PR depends on those two landing.

@Trott
Copy link
Member

Trott commented Oct 7, 2018

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.)

@Trott Trott added the blocked PRs that are blocked by other issues or PRs. label Oct 7, 2018
@Trott
Copy link
Member

Trott commented Oct 7, 2018

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 guides directory in this repo can be renamed to something that makes it clear they are internal to the project and/or moved out of docs?

Maybe a bot can comment on any PR that adds a new file to the docs/guides letting the user know that these guides are for internal use and if they meant to create something for end users, then they should close this PR and open a new PR over in this other repo?

Other ideas?

@vsemozhetbyt
Copy link
Contributor

Maybe it is worth to open an issue to discuss?

@gabrielschulhof
Copy link
Contributor Author

nodejs/nodejs.org#1828 has now landed, so removing the "blocked" label.

@gabrielschulhof gabrielschulhof removed the blocked PRs that are blocked by other issues or PRs. label Oct 9, 2018
@gabrielschulhof
Copy link
Contributor Author

@vsemozhetbyt @nodejs/n-api PTAL

@gabrielschulhof
Copy link
Contributor Author

@gabrielschulhof
Copy link
Contributor Author

Landed in 157d507.

gabrielschulhof pushed a commit that referenced this pull request Oct 9, 2018
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>
@gabrielschulhof gabrielschulhof deleted the link-to-abi-guide branch October 9, 2018 13:24
targos pushed a commit that referenced this pull request Oct 10, 2018
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>
jasnell pushed a commit that referenced this pull request Oct 17, 2018
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>
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. node-api Issues and PRs related to the Node-API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants