{"action":"opened","number":110,"pull_request":{"url":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/110","id":63661675,"html_url":"https://github.com/m-lab/m-lab.github.io/pull/110","diff_url":"https://github.com/m-lab/m-lab.github.io/pull/110.diff","patch_url":"https://github.com/m-lab/m-lab.github.io/pull/110.patch","issue_url":"https://api.github.com/repos/m-lab/m-lab.github.io/issues/110","number":110,"state":"open","locked":false,"title":"Re-doing \"quick link\"","user":{"login":"shredtechular","id":2396774,"avatar_url":"https://avatars.githubusercontent.com/u/2396774?v=3","gravatar_id":"","url":"https://api.github.com/users/shredtechular","html_url":"https://github.com/shredtechular","followers_url":"https://api.github.com/users/shredtechular/followers","following_url":"https://api.github.com/users/shredtechular/following{/other_user}","gists_url":"https://api.github.com/users/shredtechular/gists{/gist_id}","starred_url":"https://api.github.com/users/shredtechular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shredtechular/subscriptions","organizations_url":"https://api.github.com/users/shredtechular/orgs","repos_url":"https://api.github.com/users/shredtechular/repos","events_url":"https://api.github.com/users/shredtechular/events{/privacy}","received_events_url":"https://api.github.com/users/shredtechular/received_events","type":"User","site_admin":false},"body":"## This PR supersedes pull #83 for adding anchor links to the data docs pages.  If we like this implementation then #83 can be closed.\r\n\r\nAs the lighter js has now been implemented into the site, this PR re-addresses the anchor link or table of content (TOC) capability on individual pages.  You will notice that an author no longer has to put in the `{:.anchor-classname}` syntax for each heading that should have an anchor.  An author does still need to specify each anchor in the yml frontmatter of each post however, and they **must match** the actual heading.  \r\n\r\nIf we want to avoid that yml frontmatter with these links, then we could implement either a jekyll plugin (won't work on gh-pages) or simple js that identifies headers on a page and dynamically inserts the TOC at the top of a page.  It would be possible to customize these to some degree (meaning show a TOC or not on each page as well as configure what headings should appear in a TOC sitewide) but we would need to define the business rule for that.  All headings in the TOC?  Only h2s?  h1s through h6s?\r\n\r\nIn the pages below, you will see that I did TOC links for H1s and H2s, but again, one advantage with the current implementation is it is completely customizable for each page.  The downside is additional manual work for an author.\r\n\r\nOther notes to point out with this PR:\r\n- Needed to refactor the TOC logic in page.html slightly as there were headings with a dash in them which was causing issues with how kramdown is generating the heading ids.\r\n- Some of the anchor links were quite long, so refactored the styling a tad to allow less wrapping of these links and attempting to utilize the space a little better.\r\n\r\nThese updates can be seen on my [fork](http://shredtechular.github.io/m-lab.github.io/).","created_at":"2016-03-22T02:28:12Z","updated_at":"2016-03-22T02:28:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/110/commits","review_comments_url":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/110/comments","review_comment_url":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/m-lab/m-lab.github.io/issues/110/comments","statuses_url":"https://api.github.com/repos/m-lab/m-lab.github.io/statuses/d09d9e85331f8f1f60bd308586e4b04a9c5e392a","head":{"label":"shredtechular:feature-anchors","ref":"feature-anchors","sha":"d09d9e85331f8f1f60bd308586e4b04a9c5e392a","user":{"login":"shredtechular","id":2396774,"avatar_url":"https://avatars.githubusercontent.com/u/2396774?v=3","gravatar_id":"","url":"https://api.github.com/users/shredtechular","html_url":"https://github.com/shredtechular","followers_url":"https://api.github.com/users/shredtechular/followers","following_url":"https://api.github.com/users/shredtechular/following{/other_user}","gists_url":"https://api.github.com/users/shredtechular/gists{/gist_id}","starred_url":"https://api.github.com/users/shredtechular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shredtechular/subscriptions","organizations_url":"https://api.github.com/users/shredtechular/orgs","repos_url":"https://api.github.com/users/shredtechular/repos","events_url":"https://api.github.com/users/shredtechular/events{/privacy}","received_events_url":"https://api.github.com/users/shredtechular/received_events","type":"User","site_admin":false},"repo":{"id":51487670,"name":"m-lab.github.io","full_name":"shredtechular/m-lab.github.io","owner":{"login":"shredtechular","id":2396774,"avatar_url":"https://avatars.githubusercontent.com/u/2396774?v=3","gravatar_id":"","url":"https://api.github.com/users/shredtechular","html_url":"https://github.com/shredtechular","followers_url":"https://api.github.com/users/shredtechular/followers","following_url":"https://api.github.com/users/shredtechular/following{/other_user}","gists_url":"https://api.github.com/users/shredtechular/gists{/gist_id}","starred_url":"https://api.github.com/users/shredtechular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shredtechular/subscriptions","organizations_url":"https://api.github.com/users/shredtechular/orgs","repos_url":"https://api.github.com/users/shredtechular/repos","events_url":"https://api.github.com/users/shredtechular/events{/privacy}","received_events_url":"https://api.github.com/users/shredtechular/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shredtechular/m-lab.github.io","description":"Github hosted pages for M-Lab","fork":true,"url":"https://api.github.com/repos/shredtechular/m-lab.github.io","forks_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/forks","keys_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/teams","hooks_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/hooks","issue_events_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/events","assignees_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/tags","blobs_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/languages","stargazers_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/stargazers","contributors_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/contributors","subscribers_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/subscribers","subscription_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/subscription","commits_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/merges","archive_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/downloads","issues_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/labels{/name}","releases_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/shredtechular/m-lab.github.io/deployments","created_at":"2016-02-11T01:41:36Z","updated_at":"2016-03-16T01:23:45Z","pushed_at":"2016-03-22T02:08:20Z","git_url":"git://github.com/shredtechular/m-lab.github.io.git","ssh_url":"git@github.com:shredtechular/m-lab.github.io.git","clone_url":"https://github.com/shredtechular/m-lab.github.io.git","svn_url":"https://github.com/shredtechular/m-lab.github.io","homepage":null,"size":37882,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"m-lab:master","ref":"master","sha":"e55599b70a5947ad2c58ac3738542f5ca5d8dde7","user":{"login":"m-lab","id":3496264,"avatar_url":"https://avatars.githubusercontent.com/u/3496264?v=3","gravatar_id":"","url":"https://api.github.com/users/m-lab","html_url":"https://github.com/m-lab","followers_url":"https://api.github.com/users/m-lab/followers","following_url":"https://api.github.com/users/m-lab/following{/other_user}","gists_url":"https://api.github.com/users/m-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/m-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-lab/subscriptions","organizations_url":"https://api.github.com/users/m-lab/orgs","repos_url":"https://api.github.com/users/m-lab/repos","events_url":"https://api.github.com/users/m-lab/events{/privacy}","received_events_url":"https://api.github.com/users/m-lab/received_events","type":"Organization","site_admin":false},"repo":{"id":48710109,"name":"m-lab.github.io","full_name":"m-lab/m-lab.github.io","owner":{"login":"m-lab","id":3496264,"avatar_url":"https://avatars.githubusercontent.com/u/3496264?v=3","gravatar_id":"","url":"https://api.github.com/users/m-lab","html_url":"https://github.com/m-lab","followers_url":"https://api.github.com/users/m-lab/followers","following_url":"https://api.github.com/users/m-lab/following{/other_user}","gists_url":"https://api.github.com/users/m-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/m-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-lab/subscriptions","organizations_url":"https://api.github.com/users/m-lab/orgs","repos_url":"https://api.github.com/users/m-lab/repos","events_url":"https://api.github.com/users/m-lab/events{/privacy}","received_events_url":"https://api.github.com/users/m-lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/m-lab/m-lab.github.io","description":"Github hosted pages for M-Lab","fork":false,"url":"https://api.github.com/repos/m-lab/m-lab.github.io","forks_url":"https://api.github.com/repos/m-lab/m-lab.github.io/forks","keys_url":"https://api.github.com/repos/m-lab/m-lab.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m-lab/m-lab.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m-lab/m-lab.github.io/teams","hooks_url":"https://api.github.com/repos/m-lab/m-lab.github.io/hooks","issue_events_url":"https://api.github.com/repos/m-lab/m-lab.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/m-lab/m-lab.github.io/events","assignees_url":"https://api.github.com/repos/m-lab/m-lab.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/m-lab/m-lab.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/m-lab/m-lab.github.io/tags","blobs_url":"https://api.github.com/repos/m-lab/m-lab.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m-lab/m-lab.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m-lab/m-lab.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/m-lab/m-lab.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m-lab/m-lab.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/m-lab/m-lab.github.io/languages","stargazers_url":"https://api.github.com/repos/m-lab/m-lab.github.io/stargazers","contributors_url":"https://api.github.com/repos/m-lab/m-lab.github.io/contributors","subscribers_url":"https://api.github.com/repos/m-lab/m-lab.github.io/subscribers","subscription_url":"https://api.github.com/repos/m-lab/m-lab.github.io/subscription","commits_url":"https://api.github.com/repos/m-lab/m-lab.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/m-lab/m-lab.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/m-lab/m-lab.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/m-lab/m-lab.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/m-lab/m-lab.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/m-lab/m-lab.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m-lab/m-lab.github.io/merges","archive_url":"https://api.github.com/repos/m-lab/m-lab.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m-lab/m-lab.github.io/downloads","issues_url":"https://api.github.com/repos/m-lab/m-lab.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/m-lab/m-lab.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/m-lab/m-lab.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m-lab/m-lab.github.io/labels{/name}","releases_url":"https://api.github.com/repos/m-lab/m-lab.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/m-lab/m-lab.github.io/deployments","created_at":"2015-12-28T20:02:14Z","updated_at":"2016-03-19T19:00:23Z","pushed_at":"2016-03-19T19:00:22Z","git_url":"git://github.com/m-lab/m-lab.github.io.git","ssh_url":"git@github.com:m-lab/m-lab.github.io.git","clone_url":"https://github.com/m-lab/m-lab.github.io.git","svn_url":"https://github.com/m-lab/m-lab.github.io","homepage":"https://www.measurementlab.net","size":39124,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":20,"forks":4,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/110"},"html":{"href":"https://github.com/m-lab/m-lab.github.io/pull/110"},"issue":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/issues/110"},"comments":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/m-lab/m-lab.github.io/statuses/d09d9e85331f8f1f60bd308586e4b04a9c5e392a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":46,"deletions":13,"changed_files":8}}