diff options
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"], { |