summaryrefslogtreecommitdiffstats
path: root/lib/generators/website.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-23 18:03:15 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-23 18:03:15 +0100
commit112782d11837428c260211bb3afeb3263e479593 (patch)
tree3288c6972ab6d769ccbf8aade56ef6188c1c1761 /lib/generators/website.js
parentb88b4a0578c28af78a01a28591772f94d0dfe82e (diff)
downloadgitbook-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.js5
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"], {