{"action":"created","issue":{"url":"https://api.github.com/repos/HoTT/book/issues/799","labels_url":"https://api.github.com/repos/HoTT/book/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/HoTT/book/issues/799/comments","events_url":"https://api.github.com/repos/HoTT/book/issues/799/events","html_url":"https://github.com/HoTT/book/issues/799","id":84696146,"number":799,"title":"Configure travis to automatically post nightly builds","user":{"login":"mikeshulman","id":646600,"avatar_url":"https://avatars.githubusercontent.com/u/646600?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeshulman","html_url":"https://github.com/mikeshulman","followers_url":"https://api.github.com/users/mikeshulman/followers","following_url":"https://api.github.com/users/mikeshulman/following{/other_user}","gists_url":"https://api.github.com/users/mikeshulman/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeshulman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeshulman/subscriptions","organizations_url":"https://api.github.com/users/mikeshulman/orgs","repos_url":"https://api.github.com/users/mikeshulman/repos","events_url":"https://api.github.com/users/mikeshulman/events{/privacy}","received_events_url":"https://api.github.com/users/mikeshulman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HoTT/book/labels/feature%20request","name":"feature request","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-06-03T18:07:49Z","updated_at":"2015-07-16T19:54:39Z","closed_at":"2015-06-04T08:58:35Z","body":"See discussion at #794."},"comment":{"url":"https://api.github.com/repos/HoTT/book/issues/comments/122070175","html_url":"https://github.com/HoTT/book/issues/799#issuecomment-122070175","issue_url":"https://api.github.com/repos/HoTT/book/issues/799","id":122070175,"user":{"login":"JasonGross","id":396076,"avatar_url":"https://avatars.githubusercontent.com/u/396076?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonGross","html_url":"https://github.com/JasonGross","followers_url":"https://api.github.com/users/JasonGross/followers","following_url":"https://api.github.com/users/JasonGross/following{/other_user}","gists_url":"https://api.github.com/users/JasonGross/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonGross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonGross/subscriptions","organizations_url":"https://api.github.com/users/JasonGross/orgs","repos_url":"https://api.github.com/users/JasonGross/repos","events_url":"https://api.github.com/users/JasonGross/events{/privacy}","received_events_url":"https://api.github.com/users/JasonGross/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T19:54:39Z","updated_at":"2015-07-16T19:54:39Z","body":"The `setNightlyBuilds` function would presumably be something like\r\n```javascript\r\nfunction setNightlyBuilds(urls) {\r\n  var types = [\"on-screen\", \"e-book\", \"letter\", \"A4\", \"errata\"];\r\n  for (var i = 0; i < types.length; i++) {\r\n    var elem = document.getElementById(\"nightly-\" + types[i]);\r\n    if (elem !== null) {\r\n      elem.href = urls[types[i]];\r\n    }\r\n  }\r\n}\r\n```\r\nand then we'd put things like `<a href=\"#\" title=\"Most recent build for on-screen viewing\" id=\"nightly-on-screen\">[nightly]</a>` on the book page."}}