summaryrefslogtreecommitdiffstats
path: root/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test.js')
-rw-r--r--test.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/test.js b/test.js
deleted file mode 100644
index e1f3ac9..0000000
--- a/test.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var path = require('path');
-
-var gitbook = require('./lib');
-var Output = require('./lib/output');
-var NodeFS = require('./lib/fs/node');
-
-
-var BASE_PATH = path.join(__dirname); //, 'docs');
-
-// Create a filesystem to read the book
-var fs = NodeFS(BASE_PATH);
-
-// Create a book instance
-var book = gitbook.Book.createForFS(fs);
-
-// Parse the book
-gitbook.Parse.parseBook(book)
-.then(function(_book) {
- return Output.generate(Output.WebsiteGenerator, _book, {
- root: path.join(__dirname, '_book')
- });
-})
-.then(function(pages) {
- //console.log('parsed', pages);
-}, function(err) {
- console.log('error:', err.stack);
-});
-