Files
gitbook/lib/generators/base.js
T
2016-01-27 21:56:00 +01:00

30 lines
509 B
JavaScript

function Generator(output, type) {
this.output = output;
this.book = output.book;
this.type = type;
}
// Prepare the generation
Generator.prototype.prepare = function() {
};
// Copy an asset file (non-parsable), ex: images, etc
Generator.prototype.writeAsset = function(filename) {
};
// Write a page (parsable file), ex: markdown, etc
Generator.prototype.writePage = function(page) {
};
// Finish the generation
Generator.prototype.finish = function() {
};
module.exports = Generator;