mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(docs): don't rewrite colons in doc filenames
This commit is contained in:
parent
dc3d11ad19
commit
4015357ce5
2 changed files with 1 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue