fix:docs: Fix sitemap generator to use doc.id instead of doc.name

doc.id should be used instead of doc.name, otherwise links are wrongly
generated
This commit is contained in:
Di Peng 2011-06-24 15:45:12 -07:00 committed by DiPeng
parent f3323ec18e
commit 8e6e09a4bc

View file

@ -14,7 +14,7 @@ function SiteMap(docs){
docs.forEach(function(doc){
map.push(' <url><loc>http://docs.angularjs.org/#!/' +
encode(doc.section) + '/' +
encode(doc.name) +
encode(doc.id) +
'</loc><changefreq>weekly</changefreq></url>');
});
map.push('</urlset>');