diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-29 16:50:50 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-29 16:50:50 +0200 |
commit | 98f70879bde88d32e898ff057f4dc7ceaff7e25e (patch) | |
tree | 557e0948683cd985fdcc50519f693ca07a2a972c /lib/cli | |
parent | ceb4627f4e700b0e8058fae6760dbf9bb2ca7333 (diff) | |
download | gitbook-98f70879bde88d32e898ff057f4dc7ceaff7e25e.zip gitbook-98f70879bde88d32e898ff057f4dc7ceaff7e25e.tar.gz gitbook-98f70879bde88d32e898ff057f4dc7ceaff7e25e.tar.bz2 |
Complete ebook generation using ebook-convert
Diffstat (limited to 'lib/cli')
-rw-r--r-- | lib/cli/buildEbook.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cli/buildEbook.js b/lib/cli/buildEbook.js index ce1d836..405d838 100644 --- a/lib/cli/buildEbook.js +++ b/lib/cli/buildEbook.js @@ -47,18 +47,18 @@ module.exports = function(format) { var langOutputFile = path.join( path.dirname(outputFile), - path.basename(outputFile, format) + '_' + langID + format + path.basename(outputFile, format) + '_' + langID + '.' + format ); return fs.copy( - path.resolve(outputFolder, langID, 'index' + format), + path.resolve(outputFolder, langID, 'index.' + format), langOutputFile ); }) .thenResolve(languages.getCount()); } else { return fs.copy( - path.resolve(outputFolder, 'index' + format), + path.resolve(outputFolder, 'index.' + format), outputFile ).thenResolve(1); } |