summaryrefslogtreecommitdiffstats
path: root/lib/book.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/book.js')
-rw-r--r--lib/book.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/book.js b/lib/book.js
index 19b5f43..b98c9f5 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -45,6 +45,9 @@ var Book = function(root, options, parent) {
// List of plugins
this.plugins = {};
+
+ // Readme file
+ this.readmeFile = "README.md";
};
// Initialize and parse the book: config, summary, glossary
@@ -211,6 +214,7 @@ Book.prototype.parseReadme = function() {
.then(function(readme) {
if (!readme) throw "No README file";
+ that.readmeFile = readme.path;
return that.template.renderFile(readme.path)
.then(function(content) {
return readme.parser.readme(content);