mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
21 lines
412 B
JavaScript
21 lines
412 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)
|
|
JSONGenerator.prototype.writePage = function(page) {
|
|
var json = {};
|
|
|
|
|
|
return this.output.writeFile(page.withExtension('.json'), JSON.stringify(json, null, 4));
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = JSONGenerator;
|