diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js
index 7416860ac..574341da4 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 = [
diff --git a/theme/templates/page.html b/theme/templates/page.html
index 061df6d6f..9c5e06e08 100644
--- a/theme/templates/page.html
+++ b/theme/templates/page.html
@@ -39,32 +39,6 @@
{% endif %}
- {# Summary #}
-
- Table of Contents
-
- -
-
-
Introduction
-
-
- {% for item in summary.chapters %}
- -
-
- {% if item.articles.length > 0 %}
-
- {% for article in item.articles %}
- -
- {{ article.level }} {{ article.title }}
-
- {% endfor %}
-
- {% endif %}
-
- {% endfor %}
-
-
-
{# Pages content #}
@@ -74,7 +48,7 @@
{% for item in summary.chapters %}
- {{ item.title }}
+ {{ item.title }}
{% if pages[item.path] %}
@@ -101,7 +75,7 @@
{% set exercise = 1 %}
- Exercise Solutions
+ Exercise Solutions
{% for item in summary.chapters %}