{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/1904","labels_url":"https://api.github.com/repos/angular/material/issues/1904/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/1904/comments","events_url":"https://api.github.com/repos/angular/material/issues/1904/events","html_url":"https://github.com/angular/material/pull/1904","id":61270908,"number":1904,"title":"docs(versions): provide version menu for navigating to versioned docs","user":{"login":"radamant","id":12339,"avatar_url":"https://avatars.githubusercontent.com/u/12339?v=3","gravatar_id":"","url":"https://api.github.com/users/radamant","html_url":"https://github.com/radamant","followers_url":"https://api.github.com/users/radamant/followers","following_url":"https://api.github.com/users/radamant/following{/other_user}","gists_url":"https://api.github.com/users/radamant/gists{/gist_id}","starred_url":"https://api.github.com/users/radamant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radamant/subscriptions","organizations_url":"https://api.github.com/users/radamant/orgs","repos_url":"https://api.github.com/users/radamant/repos","events_url":"https://api.github.com/users/radamant/events{/privacy}","received_events_url":"https://api.github.com/users/radamant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-13T22:11:59Z","updated_at":"2015-03-13T22:12:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/1904","html_url":"https://github.com/angular/material/pull/1904","diff_url":"https://github.com/angular/material/pull/1904.diff","patch_url":"https://github.com/angular/material/pull/1904.patch"},"body":"This was created in collaboration with @marcysutton.\r\n\r\nRefs #918 provides version menu (with customizable minimum-version cutoff)\r\nthat navigates to docs based on a simple string format.\r\n\r\nThis approach was based on that provided in the base angular.js repo,\r\nand some of the code was ported from that repo.\r\n\r\nIt looks like this:\r\n\r\n![screenshot 2015-03-13 15 05 24](https://cloud.githubusercontent.com/assets/12339/6648117/3601a60c-c993-11e4-8bc9-26c1b1bcb66b.png)\r\n\r\n![screenshot 2015-03-13 14 26 39](https://cloud.githubusercontent.com/assets/12339/6647716/a274c6c0-c98e-11e4-835d-e822f22287ae.png)\r\n\r\nAs aforementioned, this works pretty much identically to the one in the angular.js repo, using much of the same code. It gets previous version from the list of tags, and adds a CDN and snapshotted version if available. The doc url generation is controlled by two variables, one to determine the minimum version for which doc urls will be generated, the other to format of the URL for versioned docs (none of the URLs currently exist.)\r\n\r\nI do not have access to either material's public-facing servers nor its CI configuration(s), so there are still several items that must be done before this can be rolled out:\r\n- determine where snapshotted versions will be hosted, angular currently uses https://code.angularjs.org/:version:/ which is why this PR uses https://code.angularjs.org/material/:version/.\r\n- provide documentation for older versions (or just set the min-version to >=0.8.3 and start with the current version)\r\n- add the version processor, controller and template to the docs for any older versions that should go in the version list\r\n- test with a real snapshotted version (I have only tested with a \"-local\" version on my machine)\r\n- @marcysutton to work on fixing the accessibility for the labels of md-select -> #1893 \r\n"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/79467067","html_url":"https://github.com/angular/material/pull/1904#issuecomment-79467067","issue_url":"https://api.github.com/repos/angular/material/issues/1904","id":79467067,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars.githubusercontent.com/u/5384588?v=3","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T22:12:00Z","updated_at":"2015-03-13T22:12:00Z","body":"Thanks for your pull request.\n\nIt looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at <https://cla.developers.google.com/>.\n\nIf you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address.  Check the [information on your CLA](https://cla.developers.google.com/clas) or see this help article on [setting the email on your git commits](https://help.github.com/articles/setting-your-email-in-git/).\n\nOnce you've done that, please reply here to let us know.  If you signed the CLA as a corporation, please let us know the company's name.\n\n<!-- need_sender_cla -->"}}