{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework.com/issues/35","labels_url":"https://api.github.com/repos/playframework/playframework.com/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework.com/issues/35/comments","events_url":"https://api.github.com/repos/playframework/playframework.com/issues/35/events","html_url":"https://github.com/playframework/playframework.com/pull/35","id":97350433,"number":35,"title":"Add sitemap","user":{"login":"cb372","id":106760,"avatar_url":"https://avatars.githubusercontent.com/u/106760?v=3","gravatar_id":"","url":"https://api.github.com/users/cb372","html_url":"https://github.com/cb372","followers_url":"https://api.github.com/users/cb372/followers","following_url":"https://api.github.com/users/cb372/following{/other_user}","gists_url":"https://api.github.com/users/cb372/gists{/gist_id}","starred_url":"https://api.github.com/users/cb372/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cb372/subscriptions","organizations_url":"https://api.github.com/users/cb372/orgs","repos_url":"https://api.github.com/users/cb372/repos","events_url":"https://api.github.com/users/cb372/events{/privacy}","received_events_url":"https://api.github.com/users/cb372/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-26T21:06:29Z","updated_at":"2015-08-03T04:18:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/playframework/playframework.com/pulls/35","html_url":"https://github.com/playframework/playframework.com/pull/35","diff_url":"https://github.com/playframework/playframework.com/pull/35.diff","patch_url":"https://github.com/playframework/playframework.com/pull/35.patch"},"body":"Adds new routes, models and actor for exposing a sitemap for the documentation pages. This allows us to set lower priorities for documentation relating to older versions of Play, allowing some control over where they appear in search engine results. See issue #8 for more details.\r\n\r\nI'm open to suggestions on how to calculate the priorities for various versions. The policy I implemented is pretty arbitrary and kludgy. See the code comments for details on the logic, and take a look at the test to see how it ranks various versions. (We have access to the release dates for each version in `playReleases.json`, so we could maybe prioritise recently released versions, even if they are not numerically the newest.)\r\n\r\nA sitemap entry looks like this:\r\n\r\n```\r\n<url>\r\n  <loc>https://www.playframework.com/documentation/2.4.x/JavaTestingWebServiceClients</loc>\r\n  <priority>0.73</priority>\r\n  <xhtml:link rel=\"alternate\" hreflang=\"tr\" href=\"https://www.playframework.com/documentation/tr/2.4.x/JavaTestingWebServiceClients\"/>\r\n  <xhtml:link rel=\"alternate\" hreflang=\"fr\" href=\"https://www.playframework.com/documentation/fr/2.4.x/JavaTestingWebServiceClients\"/>\r\n  <xhtml:link rel=\"alternate\" hreflang=\"bg\" href=\"https://www.playframework.com/documentation/bg/2.4.x/JavaTestingWebServiceClients\"/>\r\n</url>\r\n```\r\n\r\n(For some reason on my local machine the app thinks the 2.4.x docs are translated into French and Bulgarian as well as Turkish, but the live site disagrees.)\r\n\r\nThis PR adds 2 new routes:\r\n\r\n* `/sitemap.xml` - the sitemap itself\r\n* `/robots.txt` - a robots file to point crawlers to the sitemap"},"comment":{"url":"https://api.github.com/repos/playframework/playframework.com/issues/comments/127118526","html_url":"https://github.com/playframework/playframework.com/pull/35#issuecomment-127118526","issue_url":"https://api.github.com/repos/playframework/playframework.com/issues/35","id":127118526,"user":{"login":"jroper","id":105833,"avatar_url":"https://avatars.githubusercontent.com/u/105833?v=3","gravatar_id":"","url":"https://api.github.com/users/jroper","html_url":"https://github.com/jroper","followers_url":"https://api.github.com/users/jroper/followers","following_url":"https://api.github.com/users/jroper/following{/other_user}","gists_url":"https://api.github.com/users/jroper/gists{/gist_id}","starred_url":"https://api.github.com/users/jroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroper/subscriptions","organizations_url":"https://api.github.com/users/jroper/orgs","repos_url":"https://api.github.com/users/jroper/repos","events_url":"https://api.github.com/users/jroper/events{/privacy}","received_events_url":"https://api.github.com/users/jroper/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T04:18:04Z","updated_at":"2015-08-03T04:18:04Z","body":"@cb372 Thanks! This is awesome!"}}