aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorIgor Minar2011-05-02 21:15:38 -0700
committerIgor Minar2011-06-06 22:28:39 -0700
commita1f3725c0f04bfd6ff1d869a75019c3caaf08e1a (patch)
tree9c253d71162b0d2f0814ad46e7b8238aea558522 /docs
parent4ac234833a9b5fb0cfc311277b6e27c38bb87ed9 (diff)
downloadangular.js-a1f3725c0f04bfd6ff1d869a75019c3caaf08e1a.tar.bz2
ignore non .ngdoc files
Diffstat (limited to 'docs')
-rw-r--r--docs/src/reader.js1
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);