summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <ojwbetts@gmail.com>2015-03-23 20:15:41 +1300
committerOlly Betts <ojwbetts@gmail.com>2015-03-23 20:15:41 +1300
commitb7ea2115c4c167ea17c17845fbeaa933e693187f (patch)
tree13359a1e4856eb80892db4cfb37ea683925361dd
parentaf113fa6f022b7bf29d4621fb4f60feaed3be76d (diff)
parentfb2cf1189185dc317bbcd068ba52394335250e54 (diff)
downloadswig-b7ea2115c4c167ea17c17845fbeaa933e693187f.tar.gz
Merge pull request #338 from thomascirca/node-doc
Corrected the link for documentation relating to NodeJS, and added one c...
-rw-r--r--Doc/Manual/Javascript.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/Manual/Javascript.html b/Doc/Manual/Javascript.html
index cae199048..5e6540c7d 100644
--- a/Doc/Manual/Javascript.html
+++ b/Doc/Manual/Javascript.html
@@ -197,10 +197,10 @@ $ sudo npm install -g node-gyp</pre>
<pre>
$ swig -javascript -node -c++ example.i</pre>
</div>
-<p>Then run <code>node-gyp</code></p>
+<p>Then run <code>node-gyp build</code> to actually create the module:</p>
<div class="shell">
<pre>
-$ node-gyp</pre>
+$ node-gyp build</pre>
</div>
<p>This will create a <code>build</code> folder containing the native module. To use the extension you need to 'require' it in your Javascript source file:</p>
<div class="code">
@@ -410,7 +410,7 @@ open new windows, and many more things.
};</pre>
</div>
-<H2><a name="Javascript_nn14"></a>26.4 Examples</H2>
+<H2><a id="Javascript_examples" name="Javascript_nn14"></a>26.4 Examples</H2>
<p>Some basic examples are shown here in more detail.</p>