diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-25 10:32:44 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-25 10:32:44 +0200 |
commit | 4646ed8f4af184a33280d8fe1f978c7da5404725 (patch) | |
tree | b8c3102e539e4ff72a10536dd626c94ac5501b0c /test.js | |
parent | 3f5c8acb3cdbf71c429ad331d23698cc53358746 (diff) | |
download | gitbook-4646ed8f4af184a33280d8fe1f978c7da5404725.zip gitbook-4646ed8f4af184a33280d8fe1f978c7da5404725.tar.gz gitbook-4646ed8f4af184a33280d8fe1f978c7da5404725.tar.bz2 |
Fix plugins loading
Diffstat (limited to 'test.js')
-rw-r--r-- | test.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,7 @@ var path = require('path'); var gitbook = require('./lib'); +var Output = require('./lib/output'); var NodeFS = require('./lib/fs/node'); @@ -15,7 +16,9 @@ var book = gitbook.Book.createForFS(fs); // Parse the book gitbook.Parse.parseBook(book) .then(function(_book) { - return gitbook.Parse.parsePagesList(_book); + return Output.generate(Output.JSONGenerator, _book, { + root: path.join(__dirname, '_book') + }); }) .then(function(pages) { //console.log('parsed', pages); |