ignore non .ngdoc files

This commit is contained in:
Igor Minar 2011-05-02 21:15:38 -07:00
parent 4ac234833a
commit a1f3725c0f

View file

@ -43,6 +43,7 @@ function findNgDocInDir(directory, docNotify) {
fs.stat(directory + '/' + file, docNotify.waitFor(function(err, stats){
if (err) return this.error(err);
if (stats.isFile()) {
if (!file.match(/\.ngdoc$/)) return;
console.log('reading', directory + '/' + file, '...');
fs.readFile(directory + '/' + file, docNotify.waitFor(function(err, content){
if (err) return this.error(err);