diff options
| author | Igor Minar | 2011-05-02 21:15:38 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-06-06 22:28:39 -0700 |
| commit | a1f3725c0f04bfd6ff1d869a75019c3caaf08e1a (patch) | |
| tree | 9c253d71162b0d2f0814ad46e7b8238aea558522 /docs/src | |
| parent | 4ac234833a9b5fb0cfc311277b6e27c38bb87ed9 (diff) | |
| download | angular.js-a1f3725c0f04bfd6ff1d869a75019c3caaf08e1a.tar.bz2 | |
ignore non .ngdoc files
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/reader.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/src/reader.js b/docs/src/reader.js index e1a4c586..188d3fd3 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); |
