summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-25 12:13:31 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-25 12:13:31 +0100
commit94393bef4bf27857076264f0b7f6bbb72c04d3b1 (patch)
tree77aef7bb9d3a4ae1ef56b79261461da99cde8ce5
parent4f29183685de987a8e5236a42334729dfb3bef8a (diff)
downloadgitbook-94393bef4bf27857076264f0b7f6bbb72c04d3b1.zip
gitbook-94393bef4bf27857076264f0b7f6bbb72c04d3b1.tar.gz
gitbook-94393bef4bf27857076264f0b7f6bbb72c04d3b1.tar.bz2
Call hooks finish and finish:before
-rw-r--r--lib/output/base.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index 491db95..f268008 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -124,9 +124,15 @@ Output.prototype.generate = function() {
// Finish the generation
.then(function() {
+ return that.plugins.hook('finish:before');
+ })
+ .then(function() {
that.log.debug.ln('finishing the generation');
return that.finish();
})
+ .then(function() {
+ return that.plugins.hook('finish');
+ })
.then(function() {
if (!that.book.isLanguageBook()) that.log.info.ln('');