diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-24 11:36:21 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 11:46:16 +0100 |
commit | eec1e34d0c037dbe319cdfefac6d0ca443b59d10 (patch) | |
tree | 9cf7c7b121edf7135cac356b7bc53d922e5571ba /packages/gitbook-asciidoc/lib | |
parent | 1590a8c22dfb124ae690f63fe6a3d11b172f1ee0 (diff) | |
download | gitbook-eec1e34d0c037dbe319cdfefac6d0ca443b59d10.zip gitbook-eec1e34d0c037dbe319cdfefac6d0ca443b59d10.tar.gz gitbook-eec1e34d0c037dbe319cdfefac6d0ca443b59d10.tar.bz2 |
Don't add entry point to summary
Diffstat (limited to 'packages/gitbook-asciidoc/lib')
-rwxr-xr-x | packages/gitbook-asciidoc/lib/summary.js | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/packages/gitbook-asciidoc/lib/summary.js b/packages/gitbook-asciidoc/lib/summary.js index 2fa78ea..b0ab372 100755 --- a/packages/gitbook-asciidoc/lib/summary.js +++ b/packages/gitbook-asciidoc/lib/summary.js @@ -33,28 +33,8 @@ function parseList($ul, $) { return articles; } -function defaultChapterList(chapterList, entryPoint) { - var first = _.first(chapterList); - - // Check if introduction node was specified in SUMMARY.md - if (first && first.path == entryPoint) { - return chapterList; - } - - // It wasn't specified, so add in default - return [ - { - path: entryPoint, - title: 'Introduction' - } - ].concat(chapterList); -} - -function parseSummary(src, entryPoint) { - entryPoint = entryPoint || "README.adoc"; - +function parseSummary(src) { var chapters = parseEntries(src); - chapters = defaultChapterList(chapters, entryPoint); return { chapters: chapters |