summaryrefslogtreecommitdiffstats
path: root/lib/generate/generator_site.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/generator_site.js')
-rw-r--r--lib/generate/generator_site.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/generate/generator_site.js b/lib/generate/generator_site.js
new file mode 100644
index 0000000..5d17b0c
--- /dev/null
+++ b/lib/generate/generator_site.js
@@ -0,0 +1,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; \ No newline at end of file