diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-21 11:22:41 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-21 11:22:41 +0100 |
commit | 8df18746face0bf43d18540d3de5ac0cdd795549 (patch) | |
tree | 90d8aece6a4cdcefa63b45c0b562619a557364b6 /lib | |
parent | 40f829ce54d6fe8c56c1005ed7229d198918acb9 (diff) | |
download | gitbook-8df18746face0bf43d18540d3de5ac0cdd795549.zip gitbook-8df18746face0bf43d18540d3de5ac0cdd795549.tar.gz gitbook-8df18746face0bf43d18540d3de5ac0cdd795549.tar.bz2 |
Add debug log when copying theme
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output/website.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/output/website.js b/lib/output/website.js index 1cdd4a6..bbb3fdc 100644 --- a/lib/output/website.js +++ b/lib/output/website.js @@ -74,7 +74,7 @@ WebsiteOutput.prototype.prepare = function() { that.env = new nunjucks.Environment(new nunjucks.FileSystemLoader(searchPaths)); - that.env.addGlobal('__', function(s) { + that.env.addFilter('t', function(s) { // todo: i18n return s; }); @@ -116,6 +116,7 @@ WebsiteOutput.prototype.prepare = function() { var assetFolder = path.join(folder, '_assets', that.name); if (!fs.existsSync(assetFolder)) return; + that.log.debug.ln('copy assets from theme', assetFolder); return fs.copyDir( assetFolder, that.resolve('gitbook'), |