diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-06-08 00:11:50 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-06-08 00:11:50 +0200 |
commit | d1c1277bb9af3e4f5770a7e8c448211d631760cf (patch) | |
tree | cadb843b614a6b490345ff81fc613aeb705dc550 /lib/generate/site/index.js | |
parent | 9a66f56c79fb7e589b9f0b56087d5f8ba956c934 (diff) | |
download | gitbook-d1c1277bb9af3e4f5770a7e8c448211d631760cf.zip gitbook-d1c1277bb9af3e4f5770a7e8c448211d631760cf.tar.gz gitbook-d1c1277bb9af3e4f5770a7e8c448211d631760cf.tar.bz2 |
Fix cover picture for multilangs book convertion to ebook
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 51f8cae..b59c01c 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -188,7 +188,7 @@ Generator.prototype.copyAssets = function() { path.join(that.options.output, "gitbook") ) - // Add to cach manifest + // Add to cache manifest .then(function() { return that.manifest.addFolder(path.join(that.options.output, "gitbook"), "gitbook"); }) @@ -227,7 +227,9 @@ Generator.prototype.writeCacheManifest = function() { }; Generator.prototype.finish = function() { - var deferred = this.copyAssets().then(this.writeSearchIndex); + var deferred = this.copyAssets() + .then(this.copyCover) + .then(this.writeSearchIndex); if (this.options.cache !== false) { deferred = deferred.then(this.writeCacheManifest); |