From 15e419718095902ef7f2b34bf4a357c32e5f3087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 2 Nov 2023 23:53:04 +0100 Subject: [PATCH 1/2] doc: fix rendering of code blocks in list --- doc/setup.md | 76 ++++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/doc/setup.md b/doc/setup.md index d716a0326..688e36715 100644 --- a/doc/setup.md +++ b/doc/setup.md @@ -17,11 +17,11 @@ To use **Node-API** in a native module: 1. Add a dependency on this package to `package.json`: -```json - "dependencies": { - "node-addon-api": "*", - } -``` + ```json + "dependencies": { + "node-addon-api": "*", + } + ``` 2. Decide whether the package will enable C++ exceptions in the Node-API wrapper, and reference this package as a dependency in `binding.gyp`. @@ -32,51 +32,51 @@ To use **Node-API** in a native module: To use without C++ exceptions, add the following to `binding.gyp`: -```gyp - 'dependencies': [ - " Date: Fri, 3 Nov 2023 04:39:45 +0100 Subject: [PATCH 2/2] !fixup Co-authored-by: Chengzhong Wu --- doc/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/setup.md b/doc/setup.md index 688e36715..29bb1a743 100644 --- a/doc/setup.md +++ b/doc/setup.md @@ -56,7 +56,7 @@ To use **Node-API** in a native module: ], ``` - 4. If you would like your native addon to support OSX, please also add the + 3. If you would like your native addon to support OSX, please also add the following settings in the `binding.gyp` file: ```gyp @@ -70,7 +70,7 @@ To use **Node-API** in a native module: ] ``` - 5. Include `napi.h` in the native module code. + 4. Include `napi.h` in the native module code. To ensure only ABI-stable APIs are used, DO NOT include `node.h`, `nan.h`, or `v8.h`.