lib/parse/parseBook.js
function parseBook(book) {
    return timing.measure(
        'parse.book',
        Promise(book)
        .then(parseIgnore)
        .then(parseConfig)
        .then(parseLanguages)
        .then(function(resultBook) {
            if (resultBook.isMultilingual()) {
                return parseMultilingualBook(resultBook);
            } else {
                return parseBookContent(resultBook);
            }
        })
    );
}
function parseBook(book) {
    return timing.measure(
        'parse.book',
        Promise(book)
        .then(parseIgnore)
        .then(parseConfig)
        .then(parseLanguages)
        .then(function(resultBook) {
            if (resultBook.isMultilingual()) {
                return parseMultilingualBook(resultBook);
            } else {
                return parseBookContent(resultBook);
            }
        })
    );
}
function parseBook ( book ) { return timing . measure ( 'parse.book' , Promise ( book ) . then ( parseIgnore ) . then ( parseConfig ) . then ( parseLanguages ) . then ( function ( resultBook ) { if ( resultBook . isMultilingual ( ) ) { return parseMultilingualBook ( resultBook ) ; } else { return parseBookContent ( resultBook ) ; } } ) ) ; }
Parse a whole book from a filesystem

@param {Book} book
@return {Promise<Book>}
Parse a whole book from a filesystem