Browse Source

Doc improvements

v0.7.4-release
koichik 13 years ago
parent
commit
3eb246485a
  1. 10
      doc/api/globals.markdown
  2. 2
      doc/api/modules.markdown
  3. 1
      doc/template.html

10
doc/api/globals.markdown

@ -41,16 +41,6 @@ Modules are cached in this object when they are required. By deleting a key
value from this object, the next `require` will reload the module. value from this object, the next `require` will reload the module.
### require.paths
An array of search paths for `require()`. This array can be modified to add
custom paths.
Example: add a new path to the beginning of the search list
require.paths.unshift('/usr/local/node');
### __filename ### __filename
The filename of the script being executed. This is the absolute path, and not necessarily The filename of the script being executed. This is the absolute path, and not necessarily

2
doc/api/modules.markdown

@ -244,7 +244,7 @@ Additionally, node will search in the following locations:
* 2: `$HOME/.node_libraries` * 2: `$HOME/.node_libraries`
* 3: `$PREFIX/lib/node` * 3: `$PREFIX/lib/node`
Where `$HOME` is the user's home directory, and `PREFIX` is node's Where `$HOME` is the user's home directory, and `$PREFIX` is node's
configured `installPrefix`. configured `installPrefix`.
These are mostly for historic reasons. You are highly encouraged to These are mostly for historic reasons. You are highly encouraged to

1
doc/template.html

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8" />
<title>{{section}}Node.js v0.5.2 Manual &amp; Documentation</title> <title>{{section}}Node.js v0.5.2 Manual &amp; Documentation</title>
<link type="image/x-icon" rel="icon" href="/favicon.ico" /> <link type="image/x-icon" rel="icon" href="/favicon.ico" />
<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" /> <link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />

Loading…
Cancel
Save