mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
chore(docs): don't rewrite colons in doc filenames
This commit is contained in:
@@ -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()));
|
||||
});
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user