diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-28 12:46:45 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-28 12:46:47 +0100 |
commit | 8cda844ef12cf87525024348c104413def02ed7f (patch) | |
tree | b82237a8101586e78d5fbf88f6bed0a06343556f /lib/plugins | |
parent | dde1ef92f0767f632fb722e828508a4ad882de31 (diff) | |
download | gitbook-8cda844ef12cf87525024348c104413def02ed7f.zip gitbook-8cda844ef12cf87525024348c104413def02ed7f.tar.gz gitbook-8cda844ef12cf87525024348c104413def02ed7f.tar.bz2 |
Export output for plugins context
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/compatibility.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/plugins/compatibility.js b/lib/plugins/compatibility.js index 7ad35a9..9f80c38 100644 --- a/lib/plugins/compatibility.js +++ b/lib/plugins/compatibility.js @@ -7,19 +7,7 @@ var error = require('../utils/error'); */ function pluginCtx(plugin) { var book = plugin.book; - var ctx = { - config: book.config, - log: plugin.log, - - // Paths - resolve: book.resolve - }; - - // Deprecation - error.deprecateField(ctx, 'options', book.config.dump(), '"options" property is deprecated, use config.get(key) instead'); - - // Loop for template filters/blocks - error.deprecateField(ctx, 'book', ctx, '"book" property is deprecated, use "this" directly instead'); + var ctx = book; return ctx; } |