{"action":"closed","number":47,"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/47","id":36079774,"html_url":"https://github.com/Microsoft/TypeScript-Handbook/pull/47","diff_url":"https://github.com/Microsoft/TypeScript-Handbook/pull/47.diff","patch_url":"https://github.com/Microsoft/TypeScript-Handbook/pull/47.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/47","number":47,"state":"closed","locked":false,"title":"Use GitBook to publish the handbook","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"body":"This PR makes appropriate changes so that we may publish the handbook through [GitBook](https://www.gitbook.com), a utility to package Markdown files into several formats - most importantly, HTML.\r\n\r\nPros:\r\n* GitBook runs on Node and can be acquired via npm\r\n* GitBook is free, open source, and Apache 2.0\r\n* The default-generated site is really nice. It comes with\r\n    * Search capabilities.\r\n    * Different font style/size selection\r\n    * Different reading modes (e.g. sepia, night mode)\r\n    * Table of contents\r\n    * Tracked sections for each table of contents.\r\n* Simple enough that I learned about it a few hours ago and managed to get it set up pretty quickly.\r\n\r\nCons:\r\n* The default-generated site says \"Published with GitBook\", but really not a big deal.\r\n* The syntax highlighting is a little busted.\r\n\r\n# Try it out\r\n\r\n```sh\r\nnpm install -g gitbook-cli\r\ngitbook serve pages\r\n```\r\n\r\nNow open a browser to `localhost:4000`.\r\n\r\n# Screenshots!\r\n\r\nLet's be fair, this is really what you came to see.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/972891/7781835/172a09d4-00ae-11e5-8c26-70eb7969705c.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/972891/7781846/432b9160-00ae-11e5-816a-821e1a7c69f0.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/972891/7781851/6b0ffb1c-00ae-11e5-9151-6d1506c92ca8.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/972891/7781855/7e7b9094-00ae-11e5-8ff8-75f243ce29a4.png)\r\n\r\n# Acknowledgements\r\n\r\nWho else but @basarat with his [typescript-book](https://github.com/basarat/typescript-book) repository?","created_at":"2015-05-23T01:17:42Z","updated_at":"2015-12-03T09:55:29Z","closed_at":"2015-12-03T09:55:29Z","merged_at":null,"merge_commit_sha":"f8ffd5511fc3a39b88fc81a320cf4dfb233a858f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/47/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/47/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/47/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/statuses/d166624c1665215f9f23d63a992ecbbf32bacc54","head":{"label":"Microsoft:gitbook","ref":"gitbook","sha":"d166624c1665215f9f23d63a992ecbbf32bacc54","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":33742985,"name":"TypeScript-Handbook","full_name":"Microsoft/TypeScript-Handbook","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript-Handbook","description":"The TypeScript Handbook is a comprehensive guide to the TypeScript language","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook","forks_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/releases{/id}","created_at":"2015-04-10T18:03:58Z","updated_at":"2015-12-03T03:56:16Z","pushed_at":"2015-12-03T09:54:28Z","git_url":"git://github.com/Microsoft/TypeScript-Handbook.git","ssh_url":"git@github.com:Microsoft/TypeScript-Handbook.git","clone_url":"https://github.com/Microsoft/TypeScript-Handbook.git","svn_url":"https://github.com/Microsoft/TypeScript-Handbook","homepage":null,"size":346,"stargazers_count":150,"watchers_count":150,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":39,"forks":58,"open_issues":39,"watchers":150,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"c3b809342558b93e427fa3a71097a4bb928d475e","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":33742985,"name":"TypeScript-Handbook","full_name":"Microsoft/TypeScript-Handbook","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript-Handbook","description":"The TypeScript Handbook is a comprehensive guide to the TypeScript language","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook","forks_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/releases{/id}","created_at":"2015-04-10T18:03:58Z","updated_at":"2015-12-03T03:56:16Z","pushed_at":"2015-12-03T09:54:28Z","git_url":"git://github.com/Microsoft/TypeScript-Handbook.git","ssh_url":"git@github.com:Microsoft/TypeScript-Handbook.git","clone_url":"https://github.com/Microsoft/TypeScript-Handbook.git","svn_url":"https://github.com/Microsoft/TypeScript-Handbook","homepage":null,"size":346,"stargazers_count":150,"watchers_count":150,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":39,"forks":58,"open_issues":39,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/47"},"html":{"href":"https://github.com/Microsoft/TypeScript-Handbook/pull/47"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/47"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Handbook/statuses/d166624c1665215f9f23d63a992ecbbf32bacc54"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":5,"review_comments":0,"commits":10,"additions":565,"deletions":0,"changed_files":6}}