Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(): build ngdocs on windows #17
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Jun 13, 2013
1 parent 183f67c commit 27a884a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/js/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ docsApp.serviceFactory.sections = function serviceFactory() {
if (page.id == 'angular.Module') {
page.partialUrl = 'partials/api/angular.IModule.html';
} else {
page.partialUrl = 'partials/' + url + '.html';
page.partialUrl = 'partials/' + url.replace(':', '.') + '.html';
}
page.url = (NG_DOCS.html5Mode ? '' : '#/') + url;
if (!sections[page.section]) { sections[page.section] = []; }
Expand Down
2 changes: 1 addition & 1 deletion tasks/grunt-ngdocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = function(grunt) {

reader.docs.forEach(function(doc){
// this hack is here because on OSX angular.module and angular.Module map to the same file.
var id = doc.id.replace('angular.Module', 'angular.IModule'),
var id = doc.id.replace('angular.Module', 'angular.IModule').replace(':', '.'),
file = path.resolve(options.dest, 'partials', doc.section, id + '.html');
grunt.file.write(file, doc.html());
});
Expand Down

0 comments on commit 27a884a

Please sign in to comment.