Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geisendörfer <felix@debuggable.com>2010-04-09 00:07:14 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-04-09 01:20:33 +0400
commit1a9c9b0c55544d024796baf27e519880f365e9e0 (patch)
tree144bf9ba3f8337514d9663b98fa76010a03c4955 /Makefile
parent50c70ac7149907f00cea01dfb39703590c54de42 (diff)
Bring back the old manual style
This brings back the old manual style, including the toc and syntax highlighting.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b154a96cff..36a518d0827 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,9 @@ benchmark: all
doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html
doc/api.html: doc/api.markdown
- ronn --html doc/api.markdown > doc/api.html
+ ronn -f --html doc/api.markdown \
+ | sed "s/<h2>\(.*\)<\/h2>/<h2 id=\"\1\">\1<\/h2>/g" \
+ | cat doc/api_header.html - doc/api_footer.html > 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