diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-05-29 17:07:03 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-05-29 17:07:03 +0200 |
commit | 46321fffd93804edd7403328f51ed611daddd720 (patch) | |
tree | d011947212e95558d1a964bd0ef439fd52dafe07 /bin/build.js | |
parent | 89ba17de84b6a9c9466bf614a4a82e48d5c48b7a (diff) | |
download | gitbook-46321fffd93804edd7403328f51ed611daddd720.zip gitbook-46321fffd93804edd7403328f51ed611daddd720.tar.gz gitbook-46321fffd93804edd7403328f51ed611daddd720.tar.bz2 |
Use ebook-convert for pdf generation
Diffstat (limited to 'bin/build.js')
-rw-r--r-- | bin/build.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build.js b/bin/build.js index 5894d00..196bead 100644 --- a/bin/build.js +++ b/bin/build.js @@ -16,6 +16,11 @@ var buildCommand = function(command) { }; +var buildEbookCommand = function(command) { + return buildCommand(command) + .option('-c, --cover <path>', 'Cover image, default is cover.jpg if exists'); +}; + var makeBuildFunc = function(converter) { return function(dir, options) { dir = dir || process.cwd(); @@ -43,5 +48,6 @@ var makeBuildFunc = function(converter) { module.exports = { folder: makeBuildFunc(generate.folder), file: makeBuildFunc(generate.file), - command: buildCommand + command: buildCommand, + commandEbook: buildEbookCommand }; |