aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-08-31 16:29:49 -0700
committerIgor Minar2012-09-04 11:08:40 -0700
commit4015357ce5ac0a0cc32ddfe84c25945ca5eeceb6 (patch)
tree2a396084c69817760ccf8fe4381301a646326d0b
parentdc3d11ad194edf56c57b16e964146188c49244a0 (diff)
downloadangular.js-4015357ce5ac0a0cc32ddfe84c25945ca5eeceb6.tar.bz2
chore(docs): don't rewrite colons in doc filenames
-rwxr-xr-xdocs/src/gen-docs.js3
-rw-r--r--lib/nodeserver/server.js3
2 files changed, 1 insertions, 5 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js
index c3390819..9c3ce579 100755
--- a/docs/src/gen-docs.js
+++ b/docs/src/gen-docs.js
@@ -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()));
});
diff --git a/lib/nodeserver/server.js b/lib/nodeserver/server.js
index f4f9457a..cf4fc4d2 100644
--- a/lib/nodeserver/server.js
+++ b/lib/nodeserver/server.js
@@ -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) {