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/output/ebook/onInit.js | |
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/output/ebook/onInit.js')
-rw-r--r-- | lib/output/ebook/onInit.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/output/ebook/onInit.js b/lib/output/ebook/onInit.js deleted file mode 100644 index 402e318..0000000 --- a/lib/output/ebook/onInit.js +++ /dev/null @@ -1,21 +0,0 @@ -var WebsiteGenerator = require('../website'); - -/** - Initialize the generator - - @param {Output} - @return {Output} -*/ -function onInit(output) { - return WebsiteGenerator.onInit(output) - .then(function(resultOutput) { - var options = resultOutput.getOptions(); - - options = options.set('directoryIndex', false); - options = options.set('prefix', 'ebook'); - - return resultOutput.setOptions(options); - }); -} - -module.exports = onInit; |