summaryrefslogtreecommitdiffstats
path: root/lib/generate/page
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/page')
-rw-r--r--lib/generate/page/index.js35
1 files changed, 6 insertions, 29 deletions
diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js
index 9e48a5e..4a639ba 100644
--- a/lib/generate/page/index.js
+++ b/lib/generate/page/index.js
@@ -30,24 +30,6 @@ Generator.prototype.loadTemplates = function() {
);
};
-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;
- });
-};
-
-// Generate languages index
-Generator.prototype.langsIndex = function(langs) {
- return Q();
-};
-
Generator.prototype.finish = function() {
var that = this;
var basePath = ".";
@@ -56,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() {
@@ -78,4 +50,9 @@ Generator.prototype.finish = function() {
});
};
-module.exports = Generator; \ No newline at end of file
+// Generate languages index
+Generator.prototype.langsIndex = function(langs) {
+ return Q();
+};
+
+module.exports = Generator;