Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b8fac35

Browse files
committed
chore(docs): don't rewrite colons in doc filenames
1 parent b223081 commit b8fac35

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docs/src/gen-docs.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ writer.makeDir('build/docs/', true).then(function() {
2323
var fileFutures = [];
2424
docs.forEach(function(doc){
2525
// this hack is here because on OSX angular.module and angular.Module map to the same file.
26-
var id = doc.id.replace('angular.Module', 'angular.IModule').
27-
replace(':', '_'); // rewrite : to _ to be GAE-friendly
26+
var id = doc.id.replace('angular.Module', 'angular.IModule');
2827
fileFutures.push(writer.output('partials/' + doc.section + '/' + id + '.html', doc.html()));
2928
});
3029

lib/nodeserver/server.js

-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ StaticServlet.prototype.handleRequest = function(req, res) {
109109
sys.puts('Rewrite to ' + path);
110110
}
111111

112-
// rewrite : to _ to be GAE-friendly
113-
path = path.replace(':', '_');
114-
115112
// end of docs rewriting
116113

117114
fs.stat(path, function(err, stat) {

0 commit comments

Comments
 (0)