diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-15 09:37:43 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-15 09:37:43 +0200 |
commit | cceebb4fd979f4acc152de614fedab218de6c8a8 (patch) | |
tree | e8c74c3c7cace90d2b9fa152f7217d15e5827c5e /lib/generator.js | |
parent | afd5465a6129e96bce62dab26a4ee41e7af7365c (diff) | |
parent | d699dff872a36b33719385ddf8b641afdc5bada1 (diff) | |
download | gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.zip gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.gz gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.bz2 |
Merge branch 'improve/template-blocks'
Diffstat (limited to 'lib/generator.js')
-rw-r--r-- | lib/generator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/generator.js b/lib/generator.js index c809de2..407afa5 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -36,7 +36,7 @@ BaseGenerator.prototype.convertFile = function(input) { // Copy file to the output (non parsable) BaseGenerator.prototype.transferFile = function(input) { return fs.copy( - path.join(this.book.root, input), + this.book.resolve(input), path.join(this.options.output, input) ); }; @@ -53,8 +53,8 @@ BaseGenerator.prototype.copyCover = function() { var that = this; return Q.all([ - fs.copy(path.join(that.book.root, "cover.jpg"), path.join(that.options.output, "cover.jpg")), - fs.copy(path.join(that.book.root, "cover_small.jpg"), path.join(that.options.output, "cover_small.jpg")) + fs.copy(that.book.resolve("cover.jpg"), path.join(that.options.output, "cover.jpg")), + fs.copy(that.book.resolve("cover_small.jpg"), path.join(that.options.output, "cover_small.jpg")) ]) .fail(function() { // If orignaly from multi-lang, try copy from parent |