summaryrefslogtreecommitdiffstats
path: root/lib/configuration.js
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/configuration.js
parentafd5465a6129e96bce62dab26a4ee41e7af7365c (diff)
parentd699dff872a36b33719385ddf8b641afdc5bada1 (diff)
downloadgitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.zip
gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.gz
gitbook-cceebb4fd979f4acc152de614fedab218de6c8a8.tar.bz2
Merge branch 'improve/template-blocks'
Diffstat (limited to 'lib/configuration.js')
-rw-r--r--lib/configuration.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/configuration.js b/lib/configuration.js
index 3a73c10..acff1c1 100644
--- a/lib/configuration.js
+++ b/lib/configuration.js
@@ -100,7 +100,7 @@ Configuration.prototype.load = function() {
try {
configPath = require.resolve(
- path.resolve(that.book.root, that.options.configFile)
+ that.book.resolve(that.options.configFile)
);
// Invalidate node.js cache for livreloading
@@ -125,7 +125,7 @@ Configuration.prototype.load = function() {
that.book.log.warn.ln("gitbook version specified in your book.json might be too strict for future patches, \""+(_.first(pkg.version.split("."))+".x.x")+"\" is more adequate");
}
- that.options.output = path.resolve(that.options.output || path.join(that.book.root, "_book"));
+ that.options.output = path.resolve(that.options.output || that.book.resolve("_book"));
that.options.plugins = normalizePluginsList(that.options.plugins);
that.options.defaultsPlugins = normalizePluginsList(that.options.defaultsPlugins || "");
that.options.plugins = _.union(that.options.plugins, that.options.defaultsPlugins);