diff options
Diffstat (limited to 'lib/output/json.js')
-rw-r--r-- | lib/output/json.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/output/json.js b/lib/output/json.js index c4317c9..4fb3bbf 100644 --- a/lib/output/json.js +++ b/lib/output/json.js @@ -1,5 +1,4 @@ var _ = require('lodash'); -var gitbook = require('../gitbook'); var conrefsLoader = require('./conrefs'); var JSONOutput = conrefsLoader(); @@ -18,11 +17,7 @@ JSONOutput.prototype.onPage = function(page) { // Write as json .then(function() { - var json = _.extend( - page.getContext(), - gitbook.getContext(), - that.book.getContext() - ); + var json = that.getPageContext(page); return that.writeFile( page.withExtension('.json'), |