summaryrefslogtreecommitdiffstats
path: root/lib/book.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-29 21:50:48 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-29 21:50:48 +0100
commitc08e5ce62c30cb8d014151448bfe6da6b5a47fcf (patch)
treefd9504c00d46786aebe2c65c6a95fa62edb363a7 /lib/book.js
parentec353e179dedf1ebf1ab6e54f6217a88d087ea75 (diff)
downloadgitbook-c08e5ce62c30cb8d014151448bfe6da6b5a47fcf.zip
gitbook-c08e5ce62c30cb8d014151448bfe6da6b5a47fcf.tar.gz
gitbook-c08e5ce62c30cb8d014151448bfe6da6b5a47fcf.tar.bz2
Improve structure of doc
Diffstat (limited to 'lib/book.js')
-rw-r--r--lib/book.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/book.js b/lib/book.js
index ca8c0c0..e4616f9 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -127,12 +127,12 @@ Book.prototype.prepareConfig = function() {
return this.config.load()
.then(function() {
- var root = that.config.get('root');
- if (!root) return;
+ var rootFolder = that.config.get('root');
+ if (!rootFolder) return;
that.originalRoot = that.root;
- that.root = path.resolve(that.root, root);
- })
+ that.root = path.resolve(that.root, rootFolder);
+ });
};
// Resolve a path in the book source