summaryrefslogtreecommitdiffstats
path: root/lib/generate/ebook/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/ebook/index.js')
-rw-r--r--lib/generate/ebook/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js
index 3ca53f9..6a9aa70 100644
--- a/lib/generate/ebook/index.js
+++ b/lib/generate/ebook/index.js
@@ -35,9 +35,12 @@ Generator.prototype.finish = function() {
"--title": that.options.title,
"--comments": that.options.description,
"--authors": that.options.author,
+ "--chapter": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter ')]",
+ "--chapter-mark": "pagebreak",
"--level1-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-1 ')]",
"--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 ')]"
+ "--level3-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-3 ')]",
+ "--no-chapters-in-toc": true
};
if (format == "pdf") {