diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-10-12 22:25:39 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-10-12 22:25:39 +0200 |
commit | 2dd6192576fe2602d11741c5a9fc17c27ac1ddc3 (patch) | |
tree | d06fb454e57468c995debc3b7345f026a6b492d3 /lib | |
parent | 52c9347b9c946d19f0b9b0de2028fef8cf40d5e0 (diff) | |
download | gitbook-2dd6192576fe2602d11741c5a9fc17c27ac1ddc3.zip gitbook-2dd6192576fe2602d11741c5a9fc17c27ac1ddc3.tar.gz gitbook-2dd6192576fe2602d11741c5a9fc17c27ac1ddc3.tar.bz2 |
Remove old codes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generate/generator.js | 4 | ||||
-rw-r--r-- | lib/generate/json/index.js | 2 | ||||
-rw-r--r-- | lib/generate/page/index.js | 27 | ||||
-rw-r--r-- | lib/generate/plugin.js | 2 | ||||
-rw-r--r-- | lib/generate/site/glossary_indexer.js | 1 |
5 files changed, 4 insertions, 32 deletions
diff --git a/lib/generate/generator.js b/lib/generate/generator.js index 5367b8b..8724a4f 100644 --- a/lib/generate/generator.js +++ b/lib/generate/generator.js @@ -79,6 +79,4 @@ BaseGenerator.prototype.finish = function() { return Q.reject(new Error("Could not finish generation")); }; - - -module.exports = BaseGenerator;
\ No newline at end of file +module.exports = BaseGenerator; diff --git a/lib/generate/json/index.js b/lib/generate/json/index.js index 6a68f68..6bc5211 100644 --- a/lib/generate/json/index.js +++ b/lib/generate/json/index.js @@ -73,4 +73,4 @@ Generator.prototype.finish = function() { // ignore }; -module.exports = Generator;
\ No newline at end of file +module.exports = Generator; diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js index 33c489a..4a639ba 100644 --- a/lib/generate/page/index.js +++ b/lib/generate/page/index.js @@ -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;
\ No newline at end of file +module.exports = Generator; diff --git a/lib/generate/plugin.js b/lib/generate/plugin.js index e699a26..9d740a5 100644 --- a/lib/generate/plugin.js +++ b/lib/generate/plugin.js @@ -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; diff --git a/lib/generate/site/glossary_indexer.js b/lib/generate/site/glossary_indexer.js index dc9c2d8..46ac9a4 100644 --- a/lib/generate/site/glossary_indexer.js +++ b/lib/generate/site/glossary_indexer.js @@ -1,5 +1,4 @@ var _ = require("lodash"); - var kramed = require('kramed'); var textRenderer = require('kramed-text-renderer'); |