summaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-19 17:32:59 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-19 17:32:59 +0100
commit2dbf9b0d4a88a6461ca60f49f3d66ccd42143be3 (patch)
tree136b4674ef40a301a3c39cb23297cf969086d425 /lib/generators
parentbe4d2679a4daf885a470b5f89e8e6488b0c7a820 (diff)
downloadgitbook-2dbf9b0d4a88a6461ca60f49f3d66ccd42143be3.zip
gitbook-2dbf9b0d4a88a6461ca60f49f3d66ccd42143be3.tar.gz
gitbook-2dbf9b0d4a88a6461ca60f49f3d66ccd42143be3.tar.bz2
Start adapting json generator
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/json.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/generators/json.js b/lib/generators/json.js
index 4632a17..661e587 100644
--- a/lib/generators/json.js
+++ b/lib/generators/json.js
@@ -12,10 +12,11 @@ var Generator = function() {
};
util.inherits(Generator, BaseGenerator);
-Generator.prototype.transferFile = function(input) {
- // ignore
-};
+// Ignore soem methods
+Generator.prototype.transferFile = function(input) { };
+Generator.prototype.finish = function() { };
+// Convert an input file
Generator.prototype.convertFile = function(content, input) {
var that = this;
var json = {
@@ -69,8 +70,4 @@ Generator.prototype.langsIndex = function(langs) {
});
};
-Generator.prototype.finish = function() {
- // ignore
-};
-
module.exports = Generator;