Browse files

Man page generation.

  • Loading branch information...
1 parent 8e5d4f9 commit 68dda0a7d8939487c8191a5bdaae7af19d962482 @ry ry committed Sep 10, 2009
View
4 .gitignore
@@ -4,6 +4,8 @@ tags
.lock-wscript
Makefile
*.pyc
-website/api.html
+doc/api.html
+doc/api.xml
+doc/node.1
node
node_g
View
21 configure
@@ -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
}
View
4 website/api.txt → doc/api.txt
@@ -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:
View
0 website/index.html → doc/index.html
File renamed without changes.
View
0 website/pipe.css → doc/pipe.css
File renamed without changes.
View
0 website/sh_javascript.min.js → doc/sh_javascript.min.js
File renamed without changes.
View
0 website/sh_main.js → doc/sh_main.js
File renamed without changes.
View
0 website/sh_vim-dark.css → doc/sh_vim-dark.css
File renamed without changes.
View
0 website/toc.js → doc/toc.js
File renamed without changes.
View
4 src/node.cc
@@ -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
View
1 wscript
@@ -347,3 +347,4 @@ def build(bld):
src/events.h
src/net.h
""");
+ bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1');

0 comments on commit 68dda0a

Please sign in to comment.