Browse Source

Man page generation.

v0.7.4-release
Ryan 16 years ago
parent
commit
68dda0a7d8
  1. 4
      .gitignore
  2. 21
      configure
  3. 4
      doc/api.txt
  4. 0
      doc/index.html
  5. 0
      doc/pipe.css
  6. 0
      doc/sh_javascript.min.js
  7. 0
      doc/sh_main.js
  8. 0
      doc/sh_vim-dark.css
  9. 0
      doc/toc.js
  10. 4
      src/node.cc
  11. 1
      wscript

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

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
}

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:

0
website/index.html → doc/index.html

0
website/pipe.css → doc/pipe.css

0
website/sh_javascript.min.js → doc/sh_javascript.min.js

0
website/sh_main.js → doc/sh_main.js

0
website/sh_vim-dark.css → doc/sh_vim-dark.css

0
website/toc.js → doc/toc.js

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

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');

Loading…
Cancel
Save