summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/generate/index.js2
-rw-r--r--lib/generate/plugin.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js
index bbe5ec2..0c3e693 100644
--- a/lib/generate/index.js
+++ b/lib/generate/index.js
@@ -166,7 +166,7 @@ var generate = function(options) {
);
})
- // Finish gneration
+ // Finish generation
.then(function() {
return generator.finish();
})
diff --git a/lib/generate/plugin.js b/lib/generate/plugin.js
index 5bd332b..1d56ca0 100644
--- a/lib/generate/plugin.js
+++ b/lib/generate/plugin.js
@@ -15,10 +15,10 @@ var Plugin = function(name) {
this.infos = {};
_.each([
- name,
- "gitbook-"+name,
"gitbook-plugin-"+name,
- "gitbook-theme-"+name
+ "gitbook-theme-"+name,
+ "gitbook-"+name,
+ name,
], function(_name) {
if (this.load(_name)) return false;
}.bind(this));
@@ -112,7 +112,7 @@ Plugin.normalizeNames = function(names) {
.uniq()
.value();
- // Remove plugins starting with
+ // Remove plugins starting with
names = _.filter(names, function(name) {
return !_.contains(toremove, name) && !(name.length > 0 && name[0] == "-");
});
@@ -167,7 +167,7 @@ Plugin.fromList = function(names) {
if (!withTpl) return null;
return withTpl.resolveFile(withTpl.infos.templates[name]);
- }
+ }
});
};