summaryrefslogtreecommitdiffstats
path: root/lib/plugin.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-27 12:49:08 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-27 12:49:08 +0100
commit54e1be1e775945b0f7e397c36a1ff1413c63f475 (patch)
treee08fe8e9738d02aa234ece356cffd11d35c9434e /lib/plugin.js
parentce259eb4ec74dbcbff10938125ff00ba145befc3 (diff)
downloadgitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.zip
gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.tar.gz
gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.tar.bz2
Parse plugins in book instead of generator
Diffstat (limited to 'lib/plugin.js')
-rw-r--r--lib/plugin.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugin.js b/lib/plugin.js
index 99e8402..ec55513 100644
--- a/lib/plugin.js
+++ b/lib/plugin.js
@@ -78,7 +78,7 @@ Plugin.prototype._getResources = function(base) {
// Dynamic function
if(typeof book === "function") {
- // Call giving it the context of our generator
+ // Call giving it the context of our book
return Q().then(book.bind(this.book));
}
@@ -159,7 +159,7 @@ Plugin.prototype.resolveFile = function(filename) {
// Resolve file path
Plugin.prototype.callHook = function(name, data) {
- // Our generator will be the context to apply
+ // Our book will be the context to apply
var context = this.book;
var hookFunc = this.infos.hooks? this.infos.hooks[name] : null;
@@ -198,7 +198,7 @@ Plugin.prototype.copyAssets = function(out, options) {
// Extract data from a list of plugin
-Plugin.normalize = function(plugins, generator, options) {
+Plugin.normalize = function(plugins, options) {
options = _.defaults(options || {}, {
assetsBase: "book"
});