diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-15 09:37:43 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-15 09:37:43 +0200 |
commit | cceebb4fd979f4acc152de614fedab218de6c8a8 (patch) | |
tree | e8c74c3c7cace90d2b9fa152f7217d15e5827c5e /lib/generators/website.js | |
parent | afd5465a6129e96bce62dab26a4ee41e7af7365c (diff) | |
parent | d699dff872a36b33719385ddf8b641afdc5bada1 (diff) | |
download | gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.zip gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.gz gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.bz2 |
Merge branch 'improve/template-blocks'
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index de833d3..675092f 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -50,7 +50,7 @@ Generator.prototype.prepareStyles = function() { this.styles = _.chain(this.styles) .map(function(style) { var stylePath = that.options.styles[style]; - if (stylePath && fs.existsSync(path.resolve(that.book.root, stylePath))) { + if (stylePath && fs.existsSync(that.book.resolve(stylePath))) { return [style, stylePath]; } return null; |