blob: 5d17b0c76a5436c269adf439cbceb6ce26bc2b18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
var BaseGenerator = require("./generator");
var util = require("util");
var Generator = function() {
BaseGenerator.apply(this, arguments);
};
util.inherits(Generator, BaseGenerator);
Generator.prototype.convertFile = function(input) {
console.log("convert file", input)
};
Generator.prototype.finish = function() {
console.log("finish generation");
// Symlink index.html to README.html
/*.then(function() {
return fs.symlink(
path.join(output, 'README.html'),
path.join(output, 'index.html')
);
})
// Copy assets
.then(function() {
return fs.copy(
path.join(__dirname, "../../assets/static"),
path.join(output, "gitbook")
);
});*/
};
module.exports = Generator;
|