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>2015-08-07 07:48:41 +0300
committerRebecca Turner <me@re-becca.org>2015-08-21 04:58:22 +0300
commitd73cdba9784a6ee9e228cd77ff123a9f3abc9719 (patch)
treeb24a687aa6f44bcd9fccffb417e6dcbd66a3b25b /scripts
parentde7c872d75e4e77afe4ad612fac387ce31b0d7db (diff)
doc: stop building HTML partials
This reverts commit 8b58ad09b719295461167a34f666c5aa4d6e26f2. As it turned out, those partial docs aren't actually used by the http://docs.npmjs.com site, so there's no sense slowing down the build. PR-URL: https://github.com/npm/npm/pull/9201
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/doc-build.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/scripts/doc-build.sh b/scripts/doc-build.sh
index 6a5c7aa70..61819028b 100755
--- a/scripts/doc-build.sh
+++ b/scripts/doc-build.sh
@@ -103,22 +103,15 @@ case $dest in
| man_replace_tokens > $dest
exit $?
;;
-
- html/partial/*.html)
- url=${dest/html\/partial\//}
- cat $src | ./node_modules/.bin/marked | html_replace_tokens $url > $dest
- ;;
-
- html/*.html)
+ *.html)
url=${dest/html\//}
(cat html/dochead.html && \
- cat $src && \
+ cat $src | ./node_modules/.bin/marked &&
cat html/docfoot.html)\
| html_replace_tokens $url \
> $dest
exit $?
;;
-
*)
echo "Invalid destination type: $dest" >&2
exit 1