Remove old codes

This commit is contained in:
Samy Pessé
2014-10-12 22:25:39 +02:00
parent 52c9347b9c
commit 2dd6192576
5 changed files with 4 additions and 32 deletions
+1 -3
View File
@@ -79,6 +79,4 @@ BaseGenerator.prototype.finish = function() {
return Q.reject(new Error("Could not finish generation"));
};
module.exports = BaseGenerator;
module.exports = BaseGenerator;
+1 -1
View File
@@ -73,4 +73,4 @@ Generator.prototype.finish = function() {
// ignore
};
module.exports = Generator;
module.exports = Generator;
+1 -26
View File
@@ -29,21 +29,6 @@ Generator.prototype.loadTemplates = function() {
this.plugins.template("page") || path.resolve(this.options.theme, 'templates/page.html')
);
};
/*
Generator.prototype.convertFile = function(content, input) {
var that = this;
var json = {
path: input,
progress: parse.progress(this.options.navigation, input)
};
return this.prepareFile(content, input)
.then(function(page) {
that.pages[input] = page;
});
};
*/
Generator.prototype.finish = function() {
var that = this;
@@ -53,16 +38,6 @@ Generator.prototype.finish = function() {
var progress = parse.progress(this.options.navigation, "README.md");
return Q()
// Generate html
.then(function(pages) {
/* return that._writeTemplate(that.template, {
pages: that.pages,
progress: progress,
basePath: basePath,
staticBase: path.join(basePath, "gitbook"),
}, output);*/
})
// Copy cover
.then(function() {
@@ -80,4 +55,4 @@ Generator.prototype.langsIndex = function(langs) {
return Q();
};
module.exports = Generator;
module.exports = Generator;
+1 -1
View File
@@ -8,7 +8,7 @@ var resolve = require('resolve');
var pkg = require("../../package.json");
var RESOURCES = ["js", "css"];
var RESOURCES = ["js", "css"];
var Plugin = function(name, root, generator) {
this.name = name;
-1
View File
@@ -1,5 +1,4 @@
var _ = require("lodash");
var kramed = require('kramed');
var textRenderer = require('kramed-text-renderer');