{"action":"created","issue":{"url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique/issues/91","repository_url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique","labels_url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique/issues/91/comments","events_url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique/issues/91/events","html_url":"https://github.com/canada-ca/digital-playbook-guide-numerique/issues/91","id":316637863,"number":91,"title":"Should same-page links be auto-generated using ToC?","user":{"login":"pjackson28","id":1326498,"avatar_url":"https://avatars3.githubusercontent.com/u/1326498?v=4","gravatar_id":"","url":"https://api.github.com/users/pjackson28","html_url":"https://github.com/pjackson28","followers_url":"https://api.github.com/users/pjackson28/followers","following_url":"https://api.github.com/users/pjackson28/following{/other_user}","gists_url":"https://api.github.com/users/pjackson28/gists{/gist_id}","starred_url":"https://api.github.com/users/pjackson28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjackson28/subscriptions","organizations_url":"https://api.github.com/users/pjackson28/orgs","repos_url":"https://api.github.com/users/pjackson28/repos","events_url":"https://api.github.com/users/pjackson28/events{/privacy}","received_events_url":"https://api.github.com/users/pjackson28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T02:08:03Z","updated_at":"2018-04-23T13:38:26Z","closed_at":null,"author_association":"MEMBER","body":"For example, the \"Guidelines\" section is manually maintained which is prone to error. Since we use Kramdown, we could use <code>{:toc}</code>. For this to work, we would need set \"parse_block_html\" to \"true\". Should also set \"toc_levels\" option to \"2..2\" or \"2..3\" so that not all heading levels are displayed (\"2..2\" would match what is displayed now). Should also apply the \"list-unstyled\" class so it most closely resembles what we have now (apply to the \"- TOC\").\r\n\r\nSo would be something like the following in the .md file:\r\n```\r\n- TOC\r\n{: .list-unstyled}\r\n{:toc}\r\n```\r\n\r\nPros:\r\n- Less maintenance since the \"Guidelines\" links would be auto-generated\r\n- Prevents human error breaking the links or typing in the wrong link text\r\n\r\nCons:\r\n- Clickable same-page links would no longer be available in the GitHub preview (not as big of a deal when the gh-pages are available)"},"comment":{"url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique/issues/comments/383578251","html_url":"https://github.com/canada-ca/digital-playbook-guide-numerique/issues/91#issuecomment-383578251","issue_url":"https://api.github.com/repos/canada-ca/digital-playbook-guide-numerique/issues/91","id":383578251,"user":{"login":"pjackson28","id":1326498,"avatar_url":"https://avatars3.githubusercontent.com/u/1326498?v=4","gravatar_id":"","url":"https://api.github.com/users/pjackson28","html_url":"https://github.com/pjackson28","followers_url":"https://api.github.com/users/pjackson28/followers","following_url":"https://api.github.com/users/pjackson28/following{/other_user}","gists_url":"https://api.github.com/users/pjackson28/gists{/gist_id}","starred_url":"https://api.github.com/users/pjackson28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjackson28/subscriptions","organizations_url":"https://api.github.com/users/pjackson28/orgs","repos_url":"https://api.github.com/users/pjackson28/repos","events_url":"https://api.github.com/users/pjackson28/events{/privacy}","received_events_url":"https://api.github.com/users/pjackson28/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T13:38:26Z","updated_at":"2018-04-23T13:38:26Z","author_association":"MEMBER","body":"Turns out \"Guidelines\" links are broken in gh-pages because of how different approaches to id generation. So have to convert to the TOC approach."}}
{"actor":{"display_login":"pjackson28"}}