index.js 716 B

12345678910111213141516171819202122232425262728293031
  1. module.exports = {
  2. book: {
  3. assets: "./book",
  4. js: [
  5. "test.js"
  6. ],
  7. css: [
  8. "test.css"
  9. ]
  10. },
  11. hooks: {
  12. // For all the hooks, this represent the current generator
  13. // This is called before the book is generated
  14. init: function() {
  15. console.log("init!");
  16. },
  17. // This is called after the book generation
  18. finish: function() {
  19. console.log("finish!");
  20. },
  21. // This is called for each page of the book
  22. // It can be used for modifing page content
  23. // It should return the new page
  24. page: function(page) {
  25. return page;
  26. }
  27. }
  28. };