{"action":"created","comment":{"url":"https://api.github.com/repos/keystonejs/keystone/pulls/comments/23495143","id":23495143,"diff_hunk":"@@ -0,0 +1,18 @@\n+/*\n+ * Add visual anchor links to docs-content\n+ * Solution for issue #945 - https://github.com/keystonejs/keystone/issues/945","path":"docs/public/js/anchor-links.js","position":3,"original_position":3,"commit_id":"8c786d7efe924c86c7cb7b9b20751fee3c8165e1","original_commit_id":"8c786d7efe924c86c7cb7b9b20751fee3c8165e1","user":{"login":"JohnnyEstilles","id":5514878,"avatar_url":"https://avatars.githubusercontent.com/u/5514878?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyEstilles","html_url":"https://github.com/JohnnyEstilles","followers_url":"https://api.github.com/users/JohnnyEstilles/followers","following_url":"https://api.github.com/users/JohnnyEstilles/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyEstilles/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyEstilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyEstilles/subscriptions","organizations_url":"https://api.github.com/users/JohnnyEstilles/orgs","repos_url":"https://api.github.com/users/JohnnyEstilles/repos","events_url":"https://api.github.com/users/JohnnyEstilles/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyEstilles/received_events","type":"User","site_admin":false},"body":"Okay. I'll remove the comment.","created_at":"2015-01-24T08:53:09Z","updated_at":"2015-01-24T08:53:09Z","html_url":"https://github.com/keystonejs/keystone/pull/946#discussion_r23495143","pull_request_url":"https://api.github.com/repos/keystonejs/keystone/pulls/946","_links":{"self":{"href":"https://api.github.com/repos/keystonejs/keystone/pulls/comments/23495143"},"html":{"href":"https://github.com/keystonejs/keystone/pull/946#discussion_r23495143"},"pull_request":{"href":"https://api.github.com/repos/keystonejs/keystone/pulls/946"}}},"pull_request":{"url":"https://api.github.com/repos/keystonejs/keystone/pulls/946","id":27971270,"html_url":"https://github.com/keystonejs/keystone/pull/946","diff_url":"https://github.com/keystonejs/keystone/pull/946.diff","patch_url":"https://github.com/keystonejs/keystone/pull/946.patch","issue_url":"https://api.github.com/repos/keystonejs/keystone/issues/946","number":946,"state":"open","locked":false,"title":"Adding visual anchor links to headings/subheadings in docs (#945)","user":{"login":"JohnnyEstilles","id":5514878,"avatar_url":"https://avatars.githubusercontent.com/u/5514878?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyEstilles","html_url":"https://github.com/JohnnyEstilles","followers_url":"https://api.github.com/users/JohnnyEstilles/followers","following_url":"https://api.github.com/users/JohnnyEstilles/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyEstilles/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyEstilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyEstilles/subscriptions","organizations_url":"https://api.github.com/users/JohnnyEstilles/orgs","repos_url":"https://api.github.com/users/JohnnyEstilles/repos","events_url":"https://api.github.com/users/JohnnyEstilles/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyEstilles/received_events","type":"User","site_admin":false},"body":"Adding feature suggested by @morenoh149 in #945, which I thought was a pretty good idea.\r\n\r\nThe anchor links appear when hovering over any heading/subheading in the docs. Tested in both the English and Chinese version of the docs.\r\n\r\nThis feature programmatically adds the visual links when it finds an `a` tag with a `name` attribute, followed by an `h2` or `h3` tag.\r\n\r\nFor example it would find code like this:\r\n\r\n```html\r\n<a name=\"routesviews-settingup\"></a>\r\n<h3>Setting up your Routes and Middleware</h3>\r\n````\r\n\r\nand turn it into this:\r\n\r\n```html\r\n<a name=\"routesviews-settingup\"></a>\r\n<h3>Setting up your Routes and Middleware<a class=\"anchor\" href=\"#routesviews-settingup'\"><i class=\"entypo entypo-link\"></i></a></h3>\r\n````\r\n\r\nThe other two commits fixed the alignment of entypo icons on the language selection bar and the home page. It had been bugging me for a few days. @JedWatson, if you prefer a separate PR for these last two commits just let me know.\r\n","created_at":"2015-01-24T04:03:21Z","updated_at":"2015-01-24T08:53:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad6d1ab5f20e29a590b32485e66d112d68298e24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/keystonejs/keystone/pulls/946/commits","review_comments_url":"https://api.github.com/repos/keystonejs/keystone/pulls/946/comments","review_comment_url":"https://api.github.com/repos/keystonejs/keystone/pulls/comments/{number}","comments_url":"https://api.github.com/repos/keystonejs/keystone/issues/946/comments","statuses_url":"https://api.github.com/repos/keystonejs/keystone/statuses/8c786d7efe924c86c7cb7b9b20751fee3c8165e1","head":{"label":"JohnnyEstilles:feature/doc-visible-anchors","ref":"feature/doc-visible-anchors","sha":"8c786d7efe924c86c7cb7b9b20751fee3c8165e1","user":{"login":"JohnnyEstilles","id":5514878,"avatar_url":"https://avatars.githubusercontent.com/u/5514878?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyEstilles","html_url":"https://github.com/JohnnyEstilles","followers_url":"https://api.github.com/users/JohnnyEstilles/followers","following_url":"https://api.github.com/users/JohnnyEstilles/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyEstilles/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyEstilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyEstilles/subscriptions","organizations_url":"https://api.github.com/users/JohnnyEstilles/orgs","repos_url":"https://api.github.com/users/JohnnyEstilles/repos","events_url":"https://api.github.com/users/JohnnyEstilles/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyEstilles/received_events","type":"User","site_admin":false},"repo":{"id":21588637,"name":"keystone","full_name":"JohnnyEstilles/keystone","owner":{"login":"JohnnyEstilles","id":5514878,"avatar_url":"https://avatars.githubusercontent.com/u/5514878?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyEstilles","html_url":"https://github.com/JohnnyEstilles","followers_url":"https://api.github.com/users/JohnnyEstilles/followers","following_url":"https://api.github.com/users/JohnnyEstilles/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyEstilles/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyEstilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyEstilles/subscriptions","organizations_url":"https://api.github.com/users/JohnnyEstilles/orgs","repos_url":"https://api.github.com/users/JohnnyEstilles/repos","events_url":"https://api.github.com/users/JohnnyEstilles/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyEstilles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnnyEstilles/keystone","description":"node.js cms and web app framework","fork":true,"url":"https://api.github.com/repos/JohnnyEstilles/keystone","forks_url":"https://api.github.com/repos/JohnnyEstilles/keystone/forks","keys_url":"https://api.github.com/repos/JohnnyEstilles/keystone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnnyEstilles/keystone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnnyEstilles/keystone/teams","hooks_url":"https://api.github.com/repos/JohnnyEstilles/keystone/hooks","issue_events_url":"https://api.github.com/repos/JohnnyEstilles/keystone/issues/events{/number}","events_url":"https://api.github.com/repos/JohnnyEstilles/keystone/events","assignees_url":"https://api.github.com/repos/JohnnyEstilles/keystone/assignees{/user}","branches_url":"https://api.github.com/repos/JohnnyEstilles/keystone/branches{/branch}","tags_url":"https://api.github.com/repos/JohnnyEstilles/keystone/tags","blobs_url":"https://api.github.com/repos/JohnnyEstilles/keystone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnnyEstilles/keystone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnnyEstilles/keystone/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnnyEstilles/keystone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnnyEstilles/keystone/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnnyEstilles/keystone/languages","stargazers_url":"https://api.github.com/repos/JohnnyEstilles/keystone/stargazers","contributors_url":"https://api.github.com/repos/JohnnyEstilles/keystone/contributors","subscribers_url":"https://api.github.com/repos/JohnnyEstilles/keystone/subscribers","subscription_url":"https://api.github.com/repos/JohnnyEstilles/keystone/subscription","commits_url":"https://api.github.com/repos/JohnnyEstilles/keystone/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnnyEstilles/keystone/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnnyEstilles/keystone/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnnyEstilles/keystone/issues/comments/{number}","contents_url":"https://api.github.com/repos/JohnnyEstilles/keystone/contents/{+path}","compare_url":"https://api.github.com/repos/JohnnyEstilles/keystone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnnyEstilles/keystone/merges","archive_url":"https://api.github.com/repos/JohnnyEstilles/keystone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnnyEstilles/keystone/downloads","issues_url":"https://api.github.com/repos/JohnnyEstilles/keystone/issues{/number}","pulls_url":"https://api.github.com/repos/JohnnyEstilles/keystone/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnnyEstilles/keystone/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnnyEstilles/keystone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnnyEstilles/keystone/labels{/name}","releases_url":"https://api.github.com/repos/JohnnyEstilles/keystone/releases{/id}","created_at":"2014-07-07T22:11:18Z","updated_at":"2015-01-22T03:26:23Z","pushed_at":"2015-01-24T03:52:16Z","git_url":"git://github.com/JohnnyEstilles/keystone.git","ssh_url":"git@github.com:JohnnyEstilles/keystone.git","clone_url":"https://github.com/JohnnyEstilles/keystone.git","svn_url":"https://github.com/JohnnyEstilles/keystone","homepage":"http://www.keystonejs.com","size":8983,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"keystonejs:master","ref":"master","sha":"62e433e7b79d2e4568f66d8af33e9b9ac4f72334","user":{"login":"keystonejs","id":6118534,"avatar_url":"https://avatars.githubusercontent.com/u/6118534?v=3","gravatar_id":"","url":"https://api.github.com/users/keystonejs","html_url":"https://github.com/keystonejs","followers_url":"https://api.github.com/users/keystonejs/followers","following_url":"https://api.github.com/users/keystonejs/following{/other_user}","gists_url":"https://api.github.com/users/keystonejs/gists{/gist_id}","starred_url":"https://api.github.com/users/keystonejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keystonejs/subscriptions","organizations_url":"https://api.github.com/users/keystonejs/orgs","repos_url":"https://api.github.com/users/keystonejs/repos","events_url":"https://api.github.com/users/keystonejs/events{/privacy}","received_events_url":"https://api.github.com/users/keystonejs/received_events","type":"Organization","site_admin":false},"repo":{"id":11116372,"name":"keystone","full_name":"keystonejs/keystone","owner":{"login":"keystonejs","id":6118534,"avatar_url":"https://avatars.githubusercontent.com/u/6118534?v=3","gravatar_id":"","url":"https://api.github.com/users/keystonejs","html_url":"https://github.com/keystonejs","followers_url":"https://api.github.com/users/keystonejs/followers","following_url":"https://api.github.com/users/keystonejs/following{/other_user}","gists_url":"https://api.github.com/users/keystonejs/gists{/gist_id}","starred_url":"https://api.github.com/users/keystonejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keystonejs/subscriptions","organizations_url":"https://api.github.com/users/keystonejs/orgs","repos_url":"https://api.github.com/users/keystonejs/repos","events_url":"https://api.github.com/users/keystonejs/events{/privacy}","received_events_url":"https://api.github.com/users/keystonejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keystonejs/keystone","description":"node.js cms and web app framework","fork":false,"url":"https://api.github.com/repos/keystonejs/keystone","forks_url":"https://api.github.com/repos/keystonejs/keystone/forks","keys_url":"https://api.github.com/repos/keystonejs/keystone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keystonejs/keystone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keystonejs/keystone/teams","hooks_url":"https://api.github.com/repos/keystonejs/keystone/hooks","issue_events_url":"https://api.github.com/repos/keystonejs/keystone/issues/events{/number}","events_url":"https://api.github.com/repos/keystonejs/keystone/events","assignees_url":"https://api.github.com/repos/keystonejs/keystone/assignees{/user}","branches_url":"https://api.github.com/repos/keystonejs/keystone/branches{/branch}","tags_url":"https://api.github.com/repos/keystonejs/keystone/tags","blobs_url":"https://api.github.com/repos/keystonejs/keystone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keystonejs/keystone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keystonejs/keystone/git/refs{/sha}","trees_url":"https://api.github.com/repos/keystonejs/keystone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keystonejs/keystone/statuses/{sha}","languages_url":"https://api.github.com/repos/keystonejs/keystone/languages","stargazers_url":"https://api.github.com/repos/keystonejs/keystone/stargazers","contributors_url":"https://api.github.com/repos/keystonejs/keystone/contributors","subscribers_url":"https://api.github.com/repos/keystonejs/keystone/subscribers","subscription_url":"https://api.github.com/repos/keystonejs/keystone/subscription","commits_url":"https://api.github.com/repos/keystonejs/keystone/commits{/sha}","git_commits_url":"https://api.github.com/repos/keystonejs/keystone/git/commits{/sha}","comments_url":"https://api.github.com/repos/keystonejs/keystone/comments{/number}","issue_comment_url":"https://api.github.com/repos/keystonejs/keystone/issues/comments/{number}","contents_url":"https://api.github.com/repos/keystonejs/keystone/contents/{+path}","compare_url":"https://api.github.com/repos/keystonejs/keystone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keystonejs/keystone/merges","archive_url":"https://api.github.com/repos/keystonejs/keystone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keystonejs/keystone/downloads","issues_url":"https://api.github.com/repos/keystonejs/keystone/issues{/number}","pulls_url":"https://api.github.com/repos/keystonejs/keystone/pulls{/number}","milestones_url":"https://api.github.com/repos/keystonejs/keystone/milestones{/number}","notifications_url":"https://api.github.com/repos/keystonejs/keystone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keystonejs/keystone/labels{/name}","releases_url":"https://api.github.com/repos/keystonejs/keystone/releases{/id}","created_at":"2013-07-02T05:01:55Z","updated_at":"2015-01-24T01:03:12Z","pushed_at":"2015-01-20T06:57:46Z","git_url":"git://github.com/keystonejs/keystone.git","ssh_url":"git@github.com:keystonejs/keystone.git","clone_url":"https://github.com/keystonejs/keystone.git","svn_url":"https://github.com/keystonejs/keystone","homepage":"http://www.keystonejs.com","size":17290,"stargazers_count":2479,"watchers_count":2479,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":416,"mirror_url":null,"open_issues_count":254,"forks":416,"open_issues":254,"watchers":2479,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keystonejs/keystone/pulls/946"},"html":{"href":"https://github.com/keystonejs/keystone/pull/946"},"issue":{"href":"https://api.github.com/repos/keystonejs/keystone/issues/946"},"comments":{"href":"https://api.github.com/repos/keystonejs/keystone/issues/946/comments"},"review_comments":{"href":"https://api.github.com/repos/keystonejs/keystone/pulls/946/comments"},"review_comment":{"href":"https://api.github.com/repos/keystonejs/keystone/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/keystonejs/keystone/pulls/946/commits"},"statuses":{"href":"https://api.github.com/repos/keystonejs/keystone/statuses/8c786d7efe924c86c7cb7b9b20751fee3c8165e1"}}}}