diff options
| author | Igor Minar | 2012-06-26 14:50:19 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-07-02 08:21:19 -0700 |
| commit | f0a090ddf256d0c144e705c0cdf4216d824140f9 (patch) | |
| tree | 0ce47418615be960f5e9d7e580f6edf1c59076db /docs | |
| parent | 6d9313a68d82654d389c0b2c3e4af148382f14be (diff) | |
| download | angular.js-f0a090ddf256d0c144e705c0cdf4216d824140f9.tar.bz2 | |
fix(docs): correctly generate sitemap
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/spec/sitemapSpec.js | 2 | ||||
| -rw-r--r-- | docs/src/SiteMap.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/spec/sitemapSpec.js b/docs/spec/sitemapSpec.js index 5f927835..a6fc03cd 100644 --- a/docs/spec/sitemapSpec.js +++ b/docs/spec/sitemapSpec.js @@ -15,7 +15,7 @@ describe('sitemap', function() { var map = new SiteMap([new Doc({section: 'foo', id: 'a.b.c<>\'"&'})]); expect(map.render()).toContain([ ' <url>', - '<loc>http://docs.angularjs.org/#!/foo/a.b.c<>'"&</loc>', + '<loc>http://docs.angularjs.org/foo/a.b.c<>'"&</loc>', '<changefreq>weekly</changefreq>', '</url>'].join('')); diff --git a/docs/src/SiteMap.js b/docs/src/SiteMap.js index fb670c31..16b10266 100644 --- a/docs/src/SiteMap.js +++ b/docs/src/SiteMap.js @@ -12,7 +12,7 @@ function SiteMap(docs){ map.push('<?xml version="1.0" encoding="UTF-8"?>'); map.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'); docs.forEach(function(doc){ - map.push(' <url><loc>http://docs.angularjs.org/#!/' + + map.push(' <url><loc>http://docs.angularjs.org/' + encode(doc.section) + '/' + encode(doc.id) + '</loc><changefreq>weekly</changefreq></url>'); |
