diff options
Diffstat (limited to 'lib/generate/ebook/index.js')
-rw-r--r-- | lib/generate/ebook/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js index 0acbbc6..bc39e15 100644 --- a/lib/generate/ebook/index.js +++ b/lib/generate/ebook/index.js @@ -39,7 +39,8 @@ Generator.prototype.finish = function() { "--level2-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-2 ')]", "--level3-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-3 ')]", "--no-chapters-in-toc": true, - "--max-levels": "1000" + "--max-levels": "1", + "--breadth-first": true }; if (format == "pdf") { @@ -50,7 +51,6 @@ Generator.prototype.finish = function() { "--margin-right": String(pdfOptions.margin.right), "--margin-top": String(pdfOptions.margin.top), "--margin-bottom": String(pdfOptions.margin.bottom), - "--pdf-add-toc": Boolean(pdfOptions.toc), "--pdf-default-font-size": String(pdfOptions.fontSize), "--pdf-mono-font-size": String(pdfOptions.fontSize), "--paper-size": String(pdfOptions.paperSize), @@ -62,7 +62,7 @@ Generator.prototype.finish = function() { var command = [ "ebook-convert", - path.join(that.options.output, "index.html"), + path.join(that.options.output, "SUMMARY.html"), path.join(that.options.output, "index."+format), stringUtils.optionsToShellArgs(_options) ].join(" "); |