diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-04 09:45:04 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-04 09:45:04 -0700 |
commit | 9dce855113b9217201cbf1cac851da44d3238fd4 (patch) | |
tree | 9e18cfd63d12917c6fe6a393398616a19cf26a13 /lib/generate/generator_site.js | |
parent | 57e2595a3ea65de63822d105010b2f75cd50636c (diff) | |
download | gitbook-9dce855113b9217201cbf1cac851da44d3238fd4.zip gitbook-9dce855113b9217201cbf1cac851da44d3238fd4.tar.gz gitbook-9dce855113b9217201cbf1cac851da44d3238fd4.tar.bz2 |
Add class BaseGenerator
Diffstat (limited to 'lib/generate/generator_site.js')
-rw-r--r-- | lib/generate/generator_site.js | 32 |
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 |