mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-26 06:43:43 +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) {
|
files.forEach(function(file) {
|
||||||
var work;
|
var work;
|
||||||
if(/\.js$/.test(file)) {
|
if(/\.js$/.test(file)) {
|
||||||
console.log("reading " + file + ".......");
|
|
||||||
work = Q.when(qfs.read(file, 'b'), function(content) {
|
work = Q.when(qfs.read(file, 'b'), function(content) {
|
||||||
processJsFile(content, file).forEach (function(doc) {
|
processJsFile(content, file).forEach (function(doc) {
|
||||||
allDocs.push(doc);
|
allDocs.push(doc);
|
||||||
|
|
@ -43,7 +42,6 @@ function collect() {
|
||||||
files.forEach(function(file) {
|
files.forEach(function(file) {
|
||||||
var work2;
|
var work2;
|
||||||
if (file.match(/\.ngdoc$/)) {
|
if (file.match(/\.ngdoc$/)) {
|
||||||
console.log("reading " + file + ".......");
|
|
||||||
work2 = Q.when(qfs.read(file, 'b'), function(content){
|
work2 = Q.when(qfs.read(file, 'b'), function(content){
|
||||||
var section = '@section ' + file.split('/')[2] + '\n';
|
var section = '@section ' + file.split('/')[2] + '\n';
|
||||||
allDocs.push(new ngdoc.Doc(section + content.toString(),file, 1).parse());
|
allDocs.push(new ngdoc.Doc(section + content.toString(),file, 1).parse());
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ var OUTPUT_DIR = "build/docs/";
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
exports.output = function(file, content) {
|
exports.output = function(file, content) {
|
||||||
console.log('writing ', file);
|
|
||||||
var fullPath = OUTPUT_DIR + file;
|
var fullPath = OUTPUT_DIR + file;
|
||||||
var dir = parent(fullPath);
|
var dir = parent(fullPath);
|
||||||
return Q.when(exports.makeDir(dir), function(error) {
|
return Q.when(exports.makeDir(dir), function(error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue