Skip to content

Commit 68dda0a

Browse files
committed
Man page generation.
1 parent 8e5d4f9 commit 68dda0a

11 files changed

Lines changed: 22 additions & 12 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ tags
44
.lock-wscript
55
Makefile
66
*.pyc
7-
website/api.html
7+
doc/api.html
8+
doc/api.xml
9+
doc/node.1
810
node
911
node_g

configure

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,25 @@ test-debug: all
106106
benchmark: all
107107
build/default/node benchmark/run.js
108108
109-
website: website/api.html website/index.html
109+
doc: doc/node.1 doc/api.html doc/index.html
110110
111-
website/api.html: website/api.txt
111+
doc/api.html: doc/api.txt
112112
asciidoc --unsafe \\
113113
-a theme=pipe \\
114114
-a toc \\
115115
-a linkcss \\
116-
-o website/api.html website/api.txt
116+
-o doc/api.html doc/api.txt
117117
118-
# -a stylesdir=website/ \\
119-
# -a scriptsdir=website/ \\
118+
doc/api.xml: doc/api.txt
119+
asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
120120
121-
website-upload: website
122-
scp website/* linode:~/tinyclouds/node/
121+
doc/node.1: doc/api.xml
122+
xsltproc --output doc/node.1 \\
123+
--nonet /etc/asciidoc/docbook-xsl/manpage.xsl \\
124+
doc/api.xml
125+
126+
website-upload: doc
127+
scp doc/* linode:~/tinyclouds/node/
123128
124129
clean:
125130
@$WAF clean
@@ -136,7 +141,7 @@ check:
136141
dist:
137142
@$WAF dist
138143
139-
.PHONY: benchmark clean dist distclean check uninstall install all test test-all website website-upload
144+
.PHONY: benchmark clean dist distclean check uninstall install all test test-all website-upload
140145
141146
EOF
142147
}

website/api.txt renamed to doc/api.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Ryan Dahl <ry@tinyclouds.org>
44
Version, 0.1.9, 2009.09.05
55

66

7-
== Name
7+
== NAME
88

99
node - evented I/O for V8 javascript
1010

1111

1212

13-
== Synopsis
13+
== SYNOPSIS
1414

1515
An example of a web server written with Node which responds with "Hello
1616
World" after waiting two seconds:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/node.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,9 @@ PrintHelp ( )
446446
printf("Usage: node [switches] script.js [arguments] \n"
447447
" -v, --version print node's version\n"
448448
" --cflags print pre-processor and compiler flags\n"
449-
" --v8-options print v8 command line options\n");
449+
" --v8-options print v8 command line options\n\n"
450+
"Documentation can be found at http://tinyclouds.org/node/api.html"
451+
" or with 'man node'\n");
450452
}
451453

452454
static void

0 commit comments

Comments
 (0)