aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisko Hevery2011-01-27 09:49:36 -0800
committerMisko Hevery2011-01-27 09:53:20 -0800
commite5a3acacad66400d4c73c8a42c6be4897ca662e3 (patch)
tree852d010b6eb12bfa33b95f708edd61d1b91042ff
parent9f947e5b8b7a6a792176615be9a91fa520052b44 (diff)
downloadangular.js-e5a3acacad66400d4c73c8a42c6be4897ca662e3.tar.bz2
corrected sitemap.xml format
-rw-r--r--docs/spec/sitemapSpec.js4
-rw-r--r--docs/src/SiteMap.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/spec/sitemapSpec.js b/docs/spec/sitemapSpec.js
index 2a5c4901..126a36d1 100644
--- a/docs/spec/sitemapSpec.js
+++ b/docs/spec/sitemapSpec.js
@@ -7,8 +7,8 @@ describe('sitemap', function(){
var map = new SiteMap([]);
expect(map.render()).toEqual([
'<?xml version="1.0" encoding="UTF-8"?>',
- '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
- '</sitemapindex>', ''].join('\n'));
+ '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
+ '</urlset>', ''].join('\n'));
});
it('should render ngdoc url', function(){
diff --git a/docs/src/SiteMap.js b/docs/src/SiteMap.js
index f6f909e9..c2b1ec92 100644
--- a/docs/src/SiteMap.js
+++ b/docs/src/SiteMap.js
@@ -10,12 +10,12 @@ function SiteMap(docs){
this.render = function(){
var map = [];
map.push('<?xml version="1.0" encoding="UTF-8"?>');
- map.push('<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
+ map.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
docs.forEach(function(doc){
map.push(' <url><loc>http://docs.angularjs.org/#!' +
encode(doc.name) + '</loc><changefreq>weekly</changefreq></url>');
});
- map.push('</sitemapindex>');
+ map.push('</urlset>');
map.push('');
return map.join('\n');
};