chore(docs): don't rewrite colons in doc filenames

This commit is contained in:
Igor Minar
2012-08-31 16:29:49 -07:00
parent b22308152f
commit b8fac353f0
2 changed files with 1 additions and 5 deletions

View File

@@ -23,8 +23,7 @@ writer.makeDir('build/docs/', true).then(function() {
var fileFutures = [];
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').
replace(':', '_'); // rewrite : to _ to be GAE-friendly
var id = doc.id.replace('angular.Module', 'angular.IModule');
fileFutures.push(writer.output('partials/' + doc.section + '/' + id + '.html', doc.html()));
});

View File

@@ -109,9 +109,6 @@ StaticServlet.prototype.handleRequest = function(req, res) {
sys.puts('Rewrite to ' + path);
}
// rewrite : to _ to be GAE-friendly
path = path.replace(':', '_');
// end of docs rewriting
fs.stat(path, function(err, stat) {