summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Preynat <johan.preynat@gmail.com>2016-05-02 16:25:57 +0200
committerJohan Preynat <johan.preynat@gmail.com>2016-05-02 16:26:00 +0200
commitd75d8729bebf997dfcb9ae302e0e8aaed267d459 (patch)
tree2e6738503cb82f839e6376969c504b018609ed5a
parentbbba52c7fff66d3b5aafe6d59de575afaca67db7 (diff)
downloadgitbook-d75d8729bebf997dfcb9ae302e0e8aaed267d459.zip
gitbook-d75d8729bebf997dfcb9ae302e0e8aaed267d459.tar.gz
gitbook-d75d8729bebf997dfcb9ae302e0e8aaed267d459.tar.bz2
lib/output/ebook/onFinish.js: Use lowercase summary.html filename from themes
-rw-r--r--lib/output/ebook/onFinish.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/output/ebook/onFinish.js b/lib/output/ebook/onFinish.js
index 17a8e5e..f365bcb 100644
--- a/lib/output/ebook/onFinish.js
+++ b/lib/output/ebook/onFinish.js
@@ -9,6 +9,7 @@ var command = require('../../utils/command');
var writeFile = require('../helper/writeFile');
var getConvertOptions = require('./getConvertOptions');
+var SUMMARY_FILE = 'SUMMARY.html';
/**
Write the SUMMARY.html
@@ -20,12 +21,12 @@ function writeSummary(output) {
var options = output.getOptions();
var prefix = options.get('prefix');
- var filePath = 'SUMMARY.html';
+ var filePath = SUMMARY_FILE;
var engine = WebsiteGenerator.createTemplateEngine(output, filePath);
var context = JSONUtils.encodeOutput(output);
// Render the theme
- return Templating.renderFile(engine, prefix + '/SUMMARY.html', context)
+ return Templating.renderFile(engine, prefix + '/summary.html', context)
// Write it to the disk
.then(function(html) {
@@ -53,7 +54,7 @@ function runEbookConvert(output) {
.then(function(options) {
var cmd = [
'ebook-convert',
- path.resolve(outputFolder, 'SUMMARY.html'),
+ path.resolve(outputFolder, SUMMARY_FILE),
path.resolve(outputFolder, 'index.' + format),
command.optionsToShellArgs(options)
].join(' ');