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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-05-02 04:03:53 +0400
committerisaacs <i@izs.me>2014-05-02 04:03:53 +0400
commit972e66164e5ad8906a38dd28b1a9ec3f9d237fbc (patch)
tree02fa92cc3df0e42ac2be9238865eabcd872ddb57 /scripts
parent92dd730ebddd8ada78d59e50f376b7b9e4e0d8db (diff)
Use marked instead of ronn for html docs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/doc-build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/doc-build.sh b/scripts/doc-build.sh
index 0eb59321b..98dfa82f6 100755
--- a/scripts/doc-build.sh
+++ b/scripts/doc-build.sh
@@ -55,13 +55,13 @@ case $dest in
*.html)
url=${dest/html\//}
(cat html/dochead.html && \
- ./node_modules/.bin/ronn -f $src &&
+ cat $src | ./node_modules/.bin/marked &&
cat html/docfoot.html)\
| sed "s|@NAME@|$name|g" \
| sed "s|@DATE@|$date|g" \
| sed "s|@URL@|$url|g" \
| sed "s|@VERSION@|$version|g" \
- | perl -pi -e 's/<h1>([^\(]*\([0-9]\)) -- (.*?)<\/h1>/<h1>\1<\/h1> <p>\2<\/p>/g' \
+ | perl -pi -e 's/<h1([^>]*)>([^\(]*\([0-9]\)) -- (.*?)<\/h1>/<h1>\2<\/h1> <p>\3<\/p>/g' \
| perl -pi -e 's/npm-npm/npm/g' \
| perl -pi -e 's/([^"-])(npm-)?README(?!\.html)(\(1\))?/\1<a href="..\/..\/doc\/README.html">README<\/a>/g' \
| perl -pi -e 's/<title><a href="[^"]+README.html">README<\/a><\/title>/<title>README<\/title>/g' \