-
Notifications
You must be signed in to change notification settings - Fork 465
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: rename N-API with Node-API #951
Conversation
Done by running: sed -i "s/N-API/Node-API/g" doc/* Fixes: nodejs#950
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.
Hi @RaisinTen,
thanks for doing this. I found some little erros on documentation and reported to you. Could you fix them?
doc/async_worker.md
Outdated
@@ -343,8 +343,8 @@ virtual Napi::AsyncWorker::~AsyncWorker(); | |||
Napi::AsyncWorker::operator napi_async_work() const; | |||
``` | |||
|
|||
Returns the N-API napi_async_work wrapped by the `Napi::AsyncWorker` object. This | |||
can be used to mix usage of the C N-API and node-addon-api. | |||
Returns the Node-API napi_async_work wrapped by the `Napi::AsyncWorker` object. This |
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.
Could you use backtick for napi_async_work? From napi_async_work to napi_async_work
doc/escapable_handle_scope.md
Outdated
@@ -40,16 +40,16 @@ Napi::EscapableHandleScope Napi::EscapableHandleScope::New(napi_env env, napi_ha | |||
|
|||
Returns a new `Napi::EscapableHandleScope` instance which wraps the | |||
napi_escapable_handle_scope handle passed in. This can be used |
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.
Could you use backtick for napi_escapable_handle_scope? From napi_escapable_handle_scope to napi_escapable_handle_scope
doc/escapable_handle_scope.md
Outdated
|
||
operator EscapableHandleScope::napi_escapable_handle_scope | ||
|
||
```cpp | ||
operator Napi::EscapableHandleScope::napi_escapable_handle_scope() const | ||
``` | ||
|
||
Returns the N-API napi_escapable_handle_scope wrapped by the `Napi::EscapableHandleScope` object. | ||
This can be used to mix usage of the C N-API and node-addon-api by allowing | ||
Returns the Node-API napi_escapable_handle_scope wrapped by the `Napi::EscapableHandleScope` object. |
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.
Could you use backtick for napi_escapable_handle_scope? From napi_escapable_handle_scope to napi_escapable_handle_scope
doc/handle_scope.md
Outdated
@@ -43,8 +43,8 @@ operator HandleScope::napi_handle_scope | |||
operator Napi::HandleScope::napi_handle_scope() const | |||
``` | |||
|
|||
Returns the N-API napi_handle_scope wrapped by the `Napi::EscapableHandleScope` object. | |||
This can be used to mix usage of the C N-API and node-addon-api by allowing | |||
Returns the Node-API napi_handle_scope wrapped by the `Napi::EscapableHandleScope` object. |
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.
Could you use backtick for napi_handle_scope? From napi_handle_scope to napi_handle_scope
doc/handle_scope.md
Outdated
@@ -34,7 +34,7 @@ Napi::HandleScope::HandleScope(Napi::Env env, Napi::HandleScope scope); | |||
- `[in] scope`: pre-existing `Napi::HandleScope`. | |||
|
|||
Returns a new `Napi::HandleScope` instance which wraps the napi_handle_scope |
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.
Could you use backtick for napi_handle_scope? From napi_handle_scope to napi_handle_scope
Could you also update the files listed below?
|
Done by running: sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md
@NickNaso Thanks for the review. I have added your suggestions. PTAL. |
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.
LGTM
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: #950 PR-URL: #951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Landed in 787e216. |
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: nodejs#950 PR-URL: nodejs#951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: nodejs#950 PR-URL: nodejs#951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: nodejs/node-addon-api#950 PR-URL: nodejs/node-addon-api#951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: nodejs/node-addon-api#950 PR-URL: nodejs/node-addon-api#951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: nodejs/node-addon-api#950 PR-URL: nodejs/node-addon-api#951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Done by running: sed -i "s/N-API/Node-API/g" doc/* sed -i "s/N-API/Node-API/g" README.md CONTRIBUTING.md Fixes: nodejs/node-addon-api#950 PR-URL: nodejs/node-addon-api#951 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Done by running:
Fixes: #950