diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-23 18:03:15 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-23 18:03:15 +0100 |
commit | 112782d11837428c260211bb3afeb3263e479593 (patch) | |
tree | 3288c6972ab6d769ccbf8aade56ef6188c1c1761 /lib/generators/website.js | |
parent | b88b4a0578c28af78a01a28591772f94d0dfe82e (diff) | |
download | gitbook-112782d11837428c260211bb3afeb3263e479593.zip gitbook-112782d11837428c260211bb3afeb3263e479593.tar.gz gitbook-112782d11837428c260211bb3afeb3263e479593.tar.bz2 |
Add logs methods to Book object
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index a60e039..af4cd0c 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -103,12 +103,13 @@ Generator.prototype.finish = function() { Generator.prototype.writeParsedFile = function(page) { var that = this; - var output = this.book.contentLink(page.path); - output = path.join(that.options.output, output); + var relativeOutput = this.book.contentLink(page.path); + var output = path.join(that.options.output, relativeOutput); var basePath = path.relative(path.dirname(output), this.options.output) || "."; if (process.platform === 'win32') basePath = basePath.replace(/\\/g, '/'); + that.book.logInfo("write parsed file", page.path, "to", relativeOutput); return that.normalizePage(page) .then(function() { return that._writeTemplate(that.templates["page"], { |