summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-10 09:59:45 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-10 09:59:45 +0200
commit241e205717bdbb8588de82fe34afd2f2e2752bdc (patch)
tree8276dcfd430d542e7118e7619755a36e65fec8a2
parente7f2803d115974ebc2f4a0356ca053d3b2b59931 (diff)
parentfb2720ea8d11329aa857122fcf628ca3d4196aab (diff)
downloadgitbook-241e205717bdbb8588de82fe34afd2f2e2752bdc.zip
gitbook-241e205717bdbb8588de82fe34afd2f2e2752bdc.tar.gz
gitbook-241e205717bdbb8588de82fe34afd2f2e2752bdc.tar.bz2
Merge pull request #912 from GitbookIO/fix/538
Fix 538: duplicate entries without paths are ignored
-rw-r--r--package.json2
-rw-r--r--test/books/init/SUMMARY.md3
-rw-r--r--test/init.js1
3 files changed, 5 insertions, 1 deletions
diff --git a/package.json b/package.json
index a66fc21..81de508 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"resolve": "0.6.3",
"fs-extra": "0.16.5",
"fstream-ignore": "1.0.2",
- "gitbook-parsers": "0.8.1",
+ "gitbook-parsers": "0.8.2",
"nunjucks": "mozilla/nunjucks#b4351ec0752b102ebd02c5e2cbc2898a6e0e4839",
"nunjucks-autoescape": "1.0.0",
"nunjucks-filter": "1.0.0",
diff --git a/test/books/init/SUMMARY.md b/test/books/init/SUMMARY.md
index 1e63aed..31c1561 100644
--- a/test/books/init/SUMMARY.md
+++ b/test/books/init/SUMMARY.md
@@ -4,3 +4,6 @@
* [Hello 2](hello2.md)
* Hello 3
* [Hello 4](hello3/hello4.md)
+ * Hello 5
+ * [Hello 6](hello3/hello5/hello6.md)
+
diff --git a/test/init.js b/test/init.js
index 3ba701f..8415b20 100644
--- a/test/init.js
+++ b/test/init.js
@@ -19,5 +19,6 @@ describe('Init Books', function () {
should(fs.existsSync(path.resolve(initRoot, "hello.md"))).be.ok;
should(fs.existsSync(path.resolve(initRoot, "hello2.md"))).be.ok;
should(fs.existsSync(path.resolve(initRoot, "hello3/hello4.md"))).be.ok;
+ should(fs.existsSync(path.resolve(initRoot, "hello3/hello5/hello6.md"))).be.ok;
});
});