diff options
Diffstat (limited to 'lib/parse/parseBook.js')
-rw-r--r-- | lib/parse/parseBook.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/parse/parseBook.js b/lib/parse/parseBook.js index 33f19f2..7dfa1eb 100644 --- a/lib/parse/parseBook.js +++ b/lib/parse/parseBook.js @@ -34,12 +34,16 @@ function parseMultilingualBook(book) { return Promise.reduce(langList, function(currentBook, lang) { var langID = lang.getID(); var child = Book.createFromParent(currentBook, langID); + var ignore = currentBook.getIgnore(); return Promise(child) - .then(parseIgnore) .then(parseConfig) .then(parseBookContent) .then(function(result) { + // Ignore content of this book when generating parent book + ignore.add(langID + '/**'); + currentBook = currentBook.set('ignore', ignore); + return currentBook.addLanguageBook(langID, result); }); }, book); |