mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-19 00:55:13 +00:00
28 lines
546 B
JavaScript
28 lines
546 B
JavaScript
var util = require('util');
|
|
var Generator = require('./base');
|
|
|
|
function WebsiteGenerator() {
|
|
Generator.apply(this, arguments);
|
|
}
|
|
util.inherits(WebsiteGenerator, Generator);
|
|
|
|
// Copy an asset file
|
|
WebsiteGenerator.prototype.writeAsset = function(filename) {
|
|
var that = this;
|
|
|
|
return that.book.readFile(filename)
|
|
.then(function(buf) {
|
|
return that.output.writeFile(filename, buf);
|
|
});
|
|
};
|
|
|
|
// Write a page (parsable file)
|
|
WebsiteGenerator.prototype.writePage = function(page) {
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = WebsiteGenerator;
|