mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-18 07:50:22 +00:00
ignore non .ngdoc files
This commit is contained in:
parent
4ac234833a
commit
a1f3725c0f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue