summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/book.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/book.js b/lib/book.js
index b3c6915..4a60acf 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -228,6 +228,7 @@ Book.prototype.parseReadme = function() {
return that.findFile(that.config.getStructure("readme"))
.then(function(readme) {
if (!readme) throw "No README file";
+ if (!_.contains(that.files, readme.path)) throw "README file is ignored";
that.readmeFile = readme.path;
return that.template.renderFile(readme.path)