Skip to content

Commit

Permalink
Man page generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 10, 2009
1 parent 8e5d4f9 commit 68dda0a
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 13 additions & 8 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions website/api.txt → doc/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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.