mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
19 lines
453 B
JavaScript
19 lines
453 B
JavaScript
module.exports = {
|
|
hooks: {
|
|
'init': function() {
|
|
global._hooks = [];
|
|
global._hooks.push('init');
|
|
},
|
|
'finish': function() {
|
|
global._hooks.push('finish');
|
|
},
|
|
'finish:before': function() {
|
|
global._hooks.push('finish:before');
|
|
},
|
|
page: function(page) {
|
|
page.content = 'Hello ' + page.content;
|
|
return page;
|
|
}
|
|
}
|
|
};
|