summaryrefslogtreecommitdiffstats
path: root/lib/generate
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-05-29 17:28:18 +0200
committerSamy Pessé <samypesse@gmail.com>2014-05-29 17:28:18 +0200
commit5c3b345fa69f577ebcc752ad626cd60f6bd412c6 (patch)
treed034046c46edb688b97d6f3db146f332f08e3047 /lib/generate
parent46321fffd93804edd7403328f51ed611daddd720 (diff)
downloadgitbook-5c3b345fa69f577ebcc752ad626cd60f6bd412c6.zip
gitbook-5c3b345fa69f577ebcc752ad626cd60f6bd412c6.tar.gz
gitbook-5c3b345fa69f577ebcc752ad626cd60f6bd412c6.tar.bz2
Generate valid first level table of content for ebook
Diffstat (limited to 'lib/generate')
-rw-r--r--lib/generate/ebook/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js
index 7416860..574341d 100644
--- a/lib/generate/ebook/index.js
+++ b/lib/generate/ebook/index.js
@@ -34,7 +34,8 @@ Generator.prototype.finish = function() {
}
var _options = {
- "--cover": that.options.cover
+ "--cover": that.options.cover,
+ "--chapter": "\"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter ')]\""
};
var command = [