aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/writer.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-06-04 19:05:50 -0400
committerIgor Minar2013-06-06 22:58:55 -0700
commitf56125d94efba462869f09064dfa39aa780b8016 (patch)
treee8ab4805f9b2aa3438aac3c2a788ef4c57bbec1c /docs/src/writer.js
parent079bf5f27566b446c11678c0cd03bb8dacfe83fc (diff)
downloadangular.js-f56125d94efba462869f09064dfa39aa780b8016.tar.bz2
chore(ngdocs): setup bower as the package manager for the docs pages
Diffstat (limited to 'docs/src/writer.js')
-rw-r--r--docs/src/writer.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/src/writer.js b/docs/src/writer.js
index b6403e34..ef33b4db 100644
--- a/docs/src/writer.js
+++ b/docs/src/writer.js
@@ -90,10 +90,12 @@ exports.replace = function(content, replacements) {
return content;
}
-exports.copyDir = function copyDir(dir) {
- return qfs.listTree('docs/' + dir).then(function(files) {
+exports.copyDir = function copyDir(from, to) {
+ return qfs.listTree(from).then(function(files) {
files.forEach(function(file) {
- exports.copy(file, file.replace(/^docs\//, ''));
+ var path = to ? file.replace(from, to) : from;
+ path = path.replace('/docs/build', '');
+ exports.copy(file, path);
});
});
};