diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-01 13:55:19 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-01 13:55:19 -0700 |
commit | f62c218735e8219db3a41235d695040e3a940fd5 (patch) | |
tree | ffd9b9b9a79ff6af467ab5d2a333eca408e8d35f | |
parent | 725510028fc557ae7c1079ed4196cbc4b09218a3 (diff) | |
download | gitbook-f62c218735e8219db3a41235d695040e3a940fd5.zip gitbook-f62c218735e8219db3a41235d695040e3a940fd5.tar.gz gitbook-f62c218735e8219db3a41235d695040e3a940fd5.tar.bz2 |
Fix #278: Add page break between chapters/articles
-rw-r--r-- | lib/generate/ebook/index.js | 5 |
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") { |