mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
Man page generation.
This commit is contained in:
parent
8e5d4f9a69
commit
68dda0a7d8
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,6 +4,8 @@ tags
|
||||
.lock-wscript
|
||||
Makefile
|
||||
*.pyc
|
||||
website/api.html
|
||||
doc/api.html
|
||||
doc/api.xml
|
||||
doc/node.1
|
||||
node
|
||||
node_g
|
||||
|
||||
21
configure
vendored
21
configure
vendored
@ -106,20 +106,25 @@ test-debug: all
|
||||
benchmark: all
|
||||
build/default/node benchmark/run.js
|
||||
|
||||
website: website/api.html website/index.html
|
||||
doc: doc/node.1 doc/api.html doc/index.html
|
||||
|
||||
website/api.html: website/api.txt
|
||||
doc/api.html: doc/api.txt
|
||||
asciidoc --unsafe \\
|
||||
-a theme=pipe \\
|
||||
-a toc \\
|
||||
-a linkcss \\
|
||||
-o website/api.html website/api.txt
|
||||
-o doc/api.html doc/api.txt
|
||||
|
||||
# -a stylesdir=website/ \\
|
||||
# -a scriptsdir=website/ \\
|
||||
doc/api.xml: doc/api.txt
|
||||
asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
|
||||
|
||||
website-upload: website
|
||||
scp website/* linode:~/tinyclouds/node/
|
||||
doc/node.1: doc/api.xml
|
||||
xsltproc --output doc/node.1 \\
|
||||
--nonet /etc/asciidoc/docbook-xsl/manpage.xsl \\
|
||||
doc/api.xml
|
||||
|
||||
website-upload: doc
|
||||
scp doc/* linode:~/tinyclouds/node/
|
||||
|
||||
clean:
|
||||
@$WAF clean
|
||||
@ -136,7 +141,7 @@ check:
|
||||
dist:
|
||||
@$WAF dist
|
||||
|
||||
.PHONY: benchmark clean dist distclean check uninstall install all test test-all website website-upload
|
||||
.PHONY: benchmark clean dist distclean check uninstall install all test test-all website-upload
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
@ -4,13 +4,13 @@ Ryan Dahl <ry@tinyclouds.org>
|
||||
Version, 0.1.9, 2009.09.05
|
||||
|
||||
|
||||
== Name
|
||||
== NAME
|
||||
|
||||
node - evented I/O for V8 javascript
|
||||
|
||||
|
||||
|
||||
== Synopsis
|
||||
== SYNOPSIS
|
||||
|
||||
An example of a web server written with Node which responds with "Hello
|
||||
World" after waiting two seconds:
|
||||
@ -446,7 +446,9 @@ PrintHelp ( )
|
||||
printf("Usage: node [switches] script.js [arguments] \n"
|
||||
" -v, --version print node's version\n"
|
||||
" --cflags print pre-processor and compiler flags\n"
|
||||
" --v8-options print v8 command line options\n");
|
||||
" --v8-options print v8 command line options\n\n"
|
||||
"Documentation can be found at http://tinyclouds.org/node/api.html"
|
||||
" or with 'man node'\n");
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user