aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-03-03 00:50:50 +1100
committerSam Potts <me@sampotts.me>2015-03-03 00:50:50 +1100
commit28caa00c3f6922d78d27e7e1652a9dae08fe7f4d (patch)
tree5d6b5953715e9a08e0cb6443fef0c66df317ef48 /gulpfile.js
parent894ac8088dac76067d86e717878f3c76c2a680e1 (diff)
downloadplyr-28caa00c3f6922d78d27e7e1652a9dae08fe7f4d.tar.lz
plyr-28caa00c3f6922d78d27e7e1652a9dae08fe7f4d.tar.xz
plyr-28caa00c3f6922d78d27e7e1652a9dae08fe7f4d.zip
Docs tweaks
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 2bb410d7..0bd79d64 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -231,12 +231,17 @@ gulp.task("cdn", function () {
gulp.task("docs", function () {
console.log("Uploading " + version + " docs to " + aws.docs.bucket);
- // Replace versioned files in index.html
- gulp.src([paths.docs.root + "index.html"])
+ // Replace versioned files in *.html
+ gulp.src([paths.docs.root + "*.html"])
.pipe(replace(cdnpath, aws.cdn.bucket + "/" + version))
.pipe(gulp.dest(paths.docs.root))
.pipe(gzip())
.pipe(s3(aws.docs, options.docs));
+
+ // Upload error.html to cdn using docs options
+ gulp.src([paths.docs.root + "error.html"])
+ .pipe(gzip())
+ .pipe(s3(aws.cdn, options.docs));
});
gulp.task("publish", function () {