summaryrefslogtreecommitdiffstats
path: root/lib/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-19 15:52:35 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-19 15:52:35 +0100
commit777963c97c41094555b1ea94b351adf380637922 (patch)
tree9e2b0702d23dcf53661355cf0ae4e9cad926366d /lib/index.js
parent2f3d6f8dff7d50fb1e60b90cbb3245dfec2fd4f6 (diff)
downloadgitbook-777963c97c41094555b1ea94b351adf380637922.zip
gitbook-777963c97c41094555b1ea94b351adf380637922.tar.gz
gitbook-777963c97c41094555b1ea94b351adf380637922.tar.bz2
Change name of Book.init to Book.parse
Diffstat (limited to 'lib/index.js')
-rw-r--r--lib/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/index.js b/lib/index.js
index 21bc6ff..8b7a390 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -19,7 +19,10 @@ module.exports = {
'output': output
}));
- return book.generate();
+ return book.parse()
+ .then(function() {
+ return book.generate();
+ });
}
}
]