summaryrefslogtreecommitdiffstats
path: root/lib/parse
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse')
-rw-r--r--lib/parse/summary.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/parse/summary.js b/lib/parse/summary.js
index 7a65532..21eadd1 100644
--- a/lib/parse/summary.js
+++ b/lib/parse/summary.js
@@ -102,6 +102,7 @@ function parseChapter(nodes, nums) {
function defaultChapterList(chapterList) {
var first = _.first(chapterList);
+ // Check if introduction node was specified in SUMMARY.md
if (first) {
var chapter = parseChapter(first, [0]);
@@ -111,6 +112,7 @@ function defaultChapterList(chapterList) {
}
}
+ // It wasn't specified, so add in default
return [
[ { type: 'text', text: '[Introduction](README.md)' } ]
].concat(chapterList);