mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-25 11:52:10 +00:00
Plugins should be relative to output
This commit is contained in:
@@ -10,8 +10,9 @@ PluginsManager is an interface to work with multiple plugins at once:
|
||||
- Call hooks for all plugins, etc
|
||||
*/
|
||||
|
||||
function PluginsManager(book) {
|
||||
this.book = book;
|
||||
function PluginsManager(output) {
|
||||
this.output = output;
|
||||
this.book = output.book;
|
||||
this.plugins = [];
|
||||
}
|
||||
|
||||
@@ -56,6 +57,4 @@ PluginsManager.prototype.load = function(name) {
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = PluginsManager;
|
||||
|
||||
Reference in New Issue
Block a user