diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-29 21:50:48 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-29 21:50:48 +0100 |
commit | c08e5ce62c30cb8d014151448bfe6da6b5a47fcf (patch) | |
tree | fd9504c00d46786aebe2c65c6a95fa62edb363a7 /lib/book.js | |
parent | ec353e179dedf1ebf1ab6e54f6217a88d087ea75 (diff) | |
download | gitbook-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.js | 8 |
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 |