summaryrefslogtreecommitdiffstats
path: root/lib/config/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config/index.js')
-rw-r--r--lib/config/index.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 801dca1..ede45ba 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -2,8 +2,9 @@ var _ = require('lodash');
var semver = require('semver');
var gitbook = require('../gitbook');
-var configDefault = require('./default');
var Promise = require('../utils/promise');
+var configDefault = require('./default');
+var plugins = require('./plugins');
// Config files to tested (sorted)
var CONFIG_FILES = [
@@ -56,10 +57,10 @@ Config.prototype.load = function() {
}
that.options.output = that.options.output || that.book.resolve('_book');
- //that.options.plugins = normalizePluginsList(that.options.plugins);
- //that.options.defaultsPlugins = normalizePluginsList(that.options.defaultsPlugins || '', false);
- //that.options.plugins = _.union(that.options.plugins, that.options.defaultsPlugins);
- //that.options.plugins = _.uniq(that.options.plugins, 'name');
+ that.options.plugins = plugins.toList(that.options.plugins);
+ that.options.defaultsPlugins = plugins.toList(that.options.defaultsPlugins || '', false);
+ that.options.plugins = _.union(that.options.plugins, that.options.defaultsPlugins);
+ that.options.plugins = _.uniq(that.options.plugins, 'name');
// Default value for text direction (from language)
/*if (!that.options.direction) {