mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 19:32:07 +00:00
Remove logs from generation
This commit is contained in:
@@ -11,7 +11,6 @@ BaseGenerator.prototype.convertFile = function(content, input) {
|
||||
};
|
||||
|
||||
BaseGenerator.prototype.transferFile = function(input) {
|
||||
console.log("Copying", input);
|
||||
return fs.copy(
|
||||
path.join(this.options.input, input),
|
||||
path.join(this.options.output, input)
|
||||
@@ -19,7 +18,6 @@ BaseGenerator.prototype.transferFile = function(input) {
|
||||
};
|
||||
|
||||
BaseGenerator.prototype.transferFolder = function(input) {
|
||||
console.log("Creating directory", input);
|
||||
return fs.mkdirp(
|
||||
path.join(this.options.output, input)
|
||||
);
|
||||
|
||||
@@ -36,8 +36,7 @@ Generator.prototype.convertFile = function(content, _input) {
|
||||
var input = path.join(this.options.input, _input);
|
||||
var output = path.join(this.options.output, _output);
|
||||
var basePath = path.relative(path.dirname(output), this.options.output) || ".";
|
||||
|
||||
console.log("Converting ", _input);
|
||||
|
||||
return Q()
|
||||
.then(function() {
|
||||
return parse.page(content, {
|
||||
|
||||
@@ -102,12 +102,7 @@ var generate = function(options) {
|
||||
// Finish gneration
|
||||
.then(function() {
|
||||
return generator.finish();
|
||||
})
|
||||
|
||||
.fail(function(err) {
|
||||
console.log(err.stack || err.message || err);
|
||||
return Q.reject(err);
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user