mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 10:03:31 +00:00
20 lines
358 B
JavaScript
20 lines
358 B
JavaScript
var util = require('util');
|
|
var Generator = require('./base');
|
|
|
|
function JSONGenerator() {
|
|
Generator.apply(this, arguments);
|
|
}
|
|
util.inherits(JSONGenerator, Generator);
|
|
|
|
// Write a page (parsable file)
|
|
Generator.prototype.writePage = function(page) {
|
|
|
|
return this.output.writeFile(page.withExtension('.json'));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = JSONGenerator;
|