aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/gen-docs.js
diff options
context:
space:
mode:
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);