summaryrefslogtreecommitdiffstats
path: root/lib/generate/page/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-10-12 22:25:39 +0200
committerSamy Pessé <samypesse@gmail.com>2014-10-12 22:25:39 +0200
commit2dd6192576fe2602d11741c5a9fc17c27ac1ddc3 (patch)
treed06fb454e57468c995debc3b7345f026a6b492d3 /lib/generate/page/index.js
parent52c9347b9c946d19f0b9b0de2028fef8cf40d5e0 (diff)
downloadgitbook-2dd6192576fe2602d11741c5a9fc17c27ac1ddc3.zip
gitbook-2dd6192576fe2602d11741c5a9fc17c27ac1ddc3.tar.gz
gitbook-2dd6192576fe2602d11741c5a9fc17c27ac1ddc3.tar.bz2
Remove old codes
Diffstat (limited to 'lib/generate/page/index.js')
-rw-r--r--lib/generate/page/index.js27
1 files changed, 1 insertions, 26 deletions
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;