aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/gen-docs.js
diff options
context:
space:
mode:
authorMisko Hevery2012-01-10 13:46:49 -0800
committerMisko Hevery2012-01-10 22:21:54 -0800
commitafd25446d23f24872eb20ac79c8fbd2cff203ef0 (patch)
tree5ec34f308b07a6ea46c9d49b7b6bb809cf7e3674 /docs/src/gen-docs.js
parent3c3e6980b3584b0a63f03afaaf956dba3b8d93e0 (diff)
downloadangular.js-afd25446d23f24872eb20ac79c8fbd2cff203ef0.tar.bz2
feat(ngdocs): support for interface documentation
Diffstat (limited to 'docs/src/gen-docs.js')
-rwxr-xr-xdocs/src/gen-docs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js
index 1ca40c60..0df19274 100755
--- a/docs/src/gen-docs.js
+++ b/docs/src/gen-docs.js
@@ -20,7 +20,9 @@ writer.makeDir('build/docs/syntaxhighlighter').then(function() {
ngdoc.merge(docs);
var fileFutures = [];
docs.forEach(function(doc){
- fileFutures.push(writer.output('partials/' + doc.section + '/' + doc.id + '.html', doc.html()));
+ // this hack is here bocause on OSX angular.module and angular.Module map to the same file.
+ var id = doc.id.replace('angular.Module', 'angular.IModule');
+ fileFutures.push(writer.output('partials/' + doc.section + '/' + id + '.html', doc.html()));
});
writeTheRest(fileFutures);