diff options
author | isaacs <i@izs.me> | 2011-09-25 21:47:00 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-09-25 21:47:00 +0400 |
commit | 9057ce7a4d3ff1d1e843d1eaafd1f65f74b28f31 (patch) | |
tree | e1d59dcec5f8c0dcaf642986510db1dc162491b1 /scripts | |
parent | a2f6cc7de6721a85d6c3b39df61a4f88d1c9a37e (diff) |
More html doc styling stuff
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/doc-build.sh | 9 | ||||
-rw-r--r-- | scripts/index-build.js | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/scripts/doc-build.sh b/scripts/doc-build.sh index 2376ba05b..915a3793e 100755 --- a/scripts/doc-build.sh +++ b/scripts/doc-build.sh @@ -38,10 +38,11 @@ case $dest in | perl -pi -e 's/npm-npm/npm/g' \ | perl -pi -e 's/([^"-])(npm-)?README(\(1\))?/\1<a href="..\/doc\/README.html">README<\/a>/g' \ | perl -pi -e 's/<title><a href="..\/doc\/README.html">README<\/a><\/title>/<title>README<\/title>/g' \ - | perl -pi -e 's/([^"-])npm-([^\(]+)\(1\)/\1<a href="..\/doc\/\2.html">\2<\/a>/g' \ - | perl -pi -e 's/([^"-])npm-([^\(]+)\(3\)/\1<a href="..\/api\/\2.html">\2<\/a>/g' \ - | perl -pi -e 's/([^"-])npm\(1\)/\1<a href="..\/doc\/npm.html">npm<\/a>/g' \ - | perl -pi -e 's/([^"-])npm\(3\)/\1<a href="..\/api\/npm.html">npm<\/a>/g' \ + | perl -pi -e 's/([^"-])npm-([^\(]+)(\(1\))/\1<a href="..\/doc\/\2.html">\2\3<\/a>/g' \ + | perl -pi -e 's/([^"-])npm-([^\(]+)(\(3\))/\1<a href="..\/api\/\2.html">\2\3<\/a>/g' \ + | perl -pi -e 's/([^"-])npm\(1\)/\1<a href="..\/doc\/npm.html">npm(1)<\/a>/g' \ + | perl -pi -e 's/([^"-])npm\(3\)/\1<a href="..\/api\/npm.html">npm(3)<\/a>/g' \ + | perl -pi -e 's/\([13]\)<\/a><\/h1>/<\/a><\/h1>/g' \ > $dest exit $? ;; diff --git a/scripts/index-build.js b/scripts/index-build.js index 331fa3a48..b3c19a03a 100644 --- a/scripts/index-build.js +++ b/scripts/index-build.js @@ -33,9 +33,11 @@ function next () { return [3, path.resolve(api, d)] }) - clidocs = [[1, readme]].concat(clidocs.filter(filter).map(function (d) { + clidocs = clidocs.filter(filter).map(function (d) { return [1, path.resolve(cli, d)] - })) + }) + + writeLine([1, readme]) console.log("# Command Line Documentation") |