mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(doc): make output less noisy
This commit is contained in:
parent
5279de0e70
commit
f6d98f1472
2 changed files with 1 additions and 4 deletions
|
|
@ -22,7 +22,6 @@ function collect() {
|
|||
files.forEach(function(file) {
|
||||
var work;
|
||||
if(/\.js$/.test(file)) {
|
||||
console.log("reading " + file + ".......");
|
||||
work = Q.when(qfs.read(file, 'b'), function(content) {
|
||||
processJsFile(content, file).forEach (function(doc) {
|
||||
allDocs.push(doc);
|
||||
|
|
@ -43,7 +42,6 @@ function collect() {
|
|||
files.forEach(function(file) {
|
||||
var work2;
|
||||
if (file.match(/\.ngdoc$/)) {
|
||||
console.log("reading " + file + ".......");
|
||||
work2 = Q.when(qfs.read(file, 'b'), function(content){
|
||||
var section = '@section ' + file.split('/')[2] + '\n';
|
||||
allDocs.push(new ngdoc.Doc(section + content.toString(),file, 1).parse());
|
||||
|
|
@ -95,4 +93,4 @@ function processJsFile(content, file) {
|
|||
}
|
||||
});
|
||||
return docs;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ var OUTPUT_DIR = "build/docs/";
|
|||
var fs = require('fs');
|
||||
|
||||
exports.output = function(file, content) {
|
||||
console.log('writing ', file);
|
||||
var fullPath = OUTPUT_DIR + file;
|
||||
var dir = parent(fullPath);
|
||||
return Q.when(exports.makeDir(dir), function(error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue