Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Conversion to markdown based API docs.
Browse files Browse the repository at this point in the history
With help from Matt Ranney <mjr@ranney.com>
  • Loading branch information
creationix authored and ry committed Mar 27, 2010
1 parent 6ecdead commit 179f718
Show file tree
Hide file tree
Showing 7 changed files with 2,165 additions and 2,385 deletions.
18 changes: 5 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,22 @@ benchmark: all

doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html

doc/api.html: doc/api.txt
asciidoc --unsafe \
-a theme=pipe \
-a toc \
-a toclevels=1 \
-a linkcss \
-o doc/api.html doc/api.txt
doc/api.html: doc/api.markdown
ronn --html doc/api.markdown > doc/api.html

doc/changelog.html: ChangeLog
echo '<html><head><title>Node.js ChangeLog</title> <link rel="stylesheet" href="./pipe.css" type="text/css" /> <link rel="stylesheet" href="./pipe-quirks.css" type="text/css" /> <body><h1>Node.js ChangeLog</h1> <pre>' > doc/changelog.html
cat ChangeLog >> doc/changelog.html
echo '</pre></body></html>' >> doc/changelog.html

doc/api.xml: doc/api.txt
asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt

doc/node.1: doc/api.xml
xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml
doc/node.1: doc/api.markdown
ronn --roff doc/api.markdown > doc/node.1

website-upload: doc
scp doc/* ryan@nodejs.org:~/tinyclouds/node/

docclean:
@-rm -f doc/node.1 doc/api.xml doc/api.html doc/changelog.html
@-rm -f doc/node.1 doc/api.html doc/changelog.html

clean:
@$(WAF) clean
Expand Down
3 changes: 1 addition & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ To run the tests:

make test

To build the documentation and install it, you will need asciidoc and
xsltproc:
To build the documentation and install it, you will need ronn:

make doc install

Expand Down
Loading

0 comments on commit 179f718

Please sign in to comment.