| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,8 @@ tags | |||
| 4 | 4 | .lock-wscript | |
| 5 | 5 | Makefile | |
| 6 | 6 | *.pyc | |
| 7 | - website/api.html | ||
| 7 | + doc/api.html | ||
| 8 | + doc/api.xml | ||
| 9 | + doc/node.1 | ||
| 8 | 10 | node | |
| 9 | 11 | node_g | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,20 +106,25 @@ test-debug: all | |||
| 106 | 106 | benchmark: all | |
| 107 | 107 | build/default/node benchmark/run.js | |
| 108 | 108 | ||
| 109 | - website: website/api.html website/index.html | ||
| 109 | + doc: doc/node.1 doc/api.html doc/index.html | ||
| 110 | 110 | ||
| 111 | - website/api.html: website/api.txt | ||
| 111 | + doc/api.html: doc/api.txt | ||
| 112 | 112 | asciidoc --unsafe \\ | |
| 113 | 113 | -a theme=pipe \\ | |
| 114 | 114 | -a toc \\ | |
| 115 | 115 | -a linkcss \\ | |
| 116 | - -o website/api.html website/api.txt | ||
| 116 | + -o doc/api.html doc/api.txt | ||
| 117 | 117 | ||
| 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 | ||
| 120 | 120 | ||
| 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/ | ||
| 123 | 128 | ||
| 124 | 129 | clean: | |
| 125 | 130 | @$WAF clean | |
@@ -136,7 +141,7 @@ check: | |||
| 136 | 141 | dist: | |
| 137 | 142 | @$WAF dist | |
| 138 | 143 | ||
| 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 | ||
| 140 | 145 | ||
| 141 | 146 | EOF | |
| 142 | 147 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,13 +4,13 @@ Ryan Dahl <ry@tinyclouds.org> | |||
| 4 | 4 | Version, 0.1.9, 2009.09.05 | |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | - == Name | ||
| 7 | + == NAME | ||
| 8 | 8 | ||
| 9 | 9 | node - evented I/O for V8 javascript | |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | - == Synopsis | ||
| 13 | + == SYNOPSIS | ||
| 14 | 14 | ||
| 15 | 15 | An example of a web server written with Node which responds with "Hello | |
| 16 | 16 | World" after waiting two seconds: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -446,7 +446,9 @@ PrintHelp ( ) | |||
| 446 | 446 | printf("Usage: node [switches] script.js [arguments] \n" | |
| 447 | 447 | " -v, --version print node's version\n" | |
| 448 | 448 | " --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"); | ||
| 450 | 452 | } | |
| 451 | 453 | ||
| 452 | 454 | static void | |
| Back | FazBrowse Home | New Git URL |
0 commit comments