diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 20:46:05 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 20:46:05 +0100 |
commit | 9a2b03b1835ca14239b61fb7b8610c782bb460e7 (patch) | |
tree | c5e86316b690f7341fc652058e8c9b35ffa8176f /lib/book.js | |
parent | 2b2b4f46c2102a85bbc98dc17fe27085d2035c40 (diff) | |
download | gitbook-9a2b03b1835ca14239b61fb7b8610c782bb460e7.zip gitbook-9a2b03b1835ca14239b61fb7b8610c782bb460e7.tar.gz gitbook-9a2b03b1835ca14239b61fb7b8610c782bb460e7.tar.bz2 |
Handle different structure in json multilingual output
Diffstat (limited to 'lib/book.js')
-rw-r--r-- | lib/book.js | 4 |
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); |