summaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-15 09:37:43 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-15 09:37:43 +0200
commitcceebb4fd979f4acc152de614fedab218de6c8a8 (patch)
treee8c74c3c7cace90d2b9fa152f7217d15e5827c5e /lib/generators
parentafd5465a6129e96bce62dab26a4ee41e7af7365c (diff)
parentd699dff872a36b33719385ddf8b641afdc5bada1 (diff)
downloadgitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.zip
gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.gz
gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.bz2
Merge branch 'improve/template-blocks'
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/website.js2
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;