mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +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 = [];
|
var fileFutures = [];
|
||||||
docs.forEach(function(doc){
|
docs.forEach(function(doc){
|
||||||
// this hack is here because on OSX angular.module and angular.Module map to the same file.
|
// 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').
|
var id = doc.id.replace('angular.Module', 'angular.IModule');
|
||||||
replace(':', '_'); // rewrite : to _ to be GAE-friendly
|
|
||||||
fileFutures.push(writer.output('partials/' + doc.section + '/' + id + '.html', doc.html()));
|
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);
|
sys.puts('Rewrite to ' + path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// rewrite : to _ to be GAE-friendly
|
|
||||||
path = path.replace(':', '_');
|
|
||||||
|
|
||||||
// end of docs rewriting
|
// end of docs rewriting
|
||||||
|
|
||||||
fs.stat(path, function(err, stat) {
|
fs.stat(path, function(err, stat) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue