summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-02-14 11:49:42 +0100
committerSamy Pessé <samypesse@gmail.com>2015-02-14 11:49:42 +0100
commit684440e2d1bbd2546f8a935290d91c6e83ed41d8 (patch)
treede12eb411d11ea6f40bb7debef57dea62bb8dd11
parent4740cd3b064381529a8a9b717f3567d80dcbe1d4 (diff)
downloadgitbook-684440e2d1bbd2546f8a935290d91c6e83ed41d8.zip
gitbook-684440e2d1bbd2546f8a935290d91c6e83ed41d8.tar.gz
gitbook-684440e2d1bbd2546f8a935290d91c6e83ed41d8.tar.bz2
Fix generation of multilingual book as ebook
-rw-r--r--lib/generators/ebook.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index 09215c4..3063e83 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -44,10 +44,11 @@ Generator.prototype.writeSummary = function() {
Generator.prototype.finish = function() {
var that = this;
- return BaseGenerator.prototype.finish.apply(this)
- .then(function() {
- return that.writeSummary();
- })
+ return Q()
+ .then(this.copyAssets)
+ .then(this.copyCover)
+ .then(this.writeGlossary)
+ .then(this.writeSummary)
.then(function() {
if (!that.ebookFormat) return Q();