From a1f3725c0f04bfd6ff1d869a75019c3caaf08e1a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 2 May 2011 21:15:38 -0700 Subject: [PATCH] ignore non .ngdoc files --- docs/src/reader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/reader.js b/docs/src/reader.js index e1a4c5860aaf..188d3fd340d0 100644 --- a/docs/src/reader.js +++ b/docs/src/reader.js @@ -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);