{"action":"created","comment":{"url":"https://api.github.com/repos/appnexus/lucid/pulls/comments/54826886","id":54826886,"diff_hunk":"@@ -33,13 +34,22 @@ const docgenMap = _.mapValues(docgenMapRaw, (value, componentName) => {\n \treturn _.merge(value, { props: parentProps });\n });\n \n+/**\n+ * Transforms an example filename to an example title. Remove leading numbers and\n+ * file extensions then capitalizes each word and separates each with a space.\n+ */\n+function getExampleTitleFromFilename (filename) {\n+    const words = _.words(_.startCase(path.basename(filename, '.jsx')));\n+    return (/^\\d+$/.test(_.head(words)) ? _.tail(words) : words).join(' ');\n+}\n+\n const examplesByComponent = _.chain(reqExamples.keys())\n \t.map((path) => {\n \t\tconst items = path.split('/').reverse(); // e.g. ['default.jsx', 'examples', 'Button', '.']","path":"src/docs/index.jsx","position":23,"original_position":23,"commit_id":"d9252727fc0f4abea4114899036d0be0c9264fb6","original_commit_id":"d9252727fc0f4abea4114899036d0be0c9264fb6","user":{"login":"ogupte","id":1967266,"avatar_url":"https://avatars.githubusercontent.com/u/1967266?v=3","gravatar_id":"","url":"https://api.github.com/users/ogupte","html_url":"https://github.com/ogupte","followers_url":"https://api.github.com/users/ogupte/followers","following_url":"https://api.github.com/users/ogupte/following{/other_user}","gists_url":"https://api.github.com/users/ogupte/gists{/gist_id}","starred_url":"https://api.github.com/users/ogupte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogupte/subscriptions","organizations_url":"https://api.github.com/users/ogupte/orgs","repos_url":"https://api.github.com/users/ogupte/repos","events_url":"https://api.github.com/users/ogupte/events{/privacy}","received_events_url":"https://api.github.com/users/ogupte/received_events","type":"User","site_admin":false},"body":"ah missed that","created_at":"2016-03-03T02:10:11Z","updated_at":"2016-03-03T02:10:11Z","html_url":"https://github.com/appnexus/lucid/pull/61#discussion_r54826886","pull_request_url":"https://api.github.com/repos/appnexus/lucid/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/appnexus/lucid/pulls/comments/54826886"},"html":{"href":"https://github.com/appnexus/lucid/pull/61#discussion_r54826886"},"pull_request":{"href":"https://api.github.com/repos/appnexus/lucid/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/appnexus/lucid/pulls/61","id":61491306,"html_url":"https://github.com/appnexus/lucid/pull/61","diff_url":"https://github.com/appnexus/lucid/pull/61.diff","patch_url":"https://github.com/appnexus/lucid/pull/61.patch","issue_url":"https://api.github.com/repos/appnexus/lucid/issues/61","number":61,"state":"open","locked":false,"title":"Docs: sidebar scrollable and example names ignore numbers","user":{"login":"ogupte","id":1967266,"avatar_url":"https://avatars.githubusercontent.com/u/1967266?v=3","gravatar_id":"","url":"https://api.github.com/users/ogupte","html_url":"https://github.com/ogupte","followers_url":"https://api.github.com/users/ogupte/followers","following_url":"https://api.github.com/users/ogupte/following{/other_user}","gists_url":"https://api.github.com/users/ogupte/gists{/gist_id}","starred_url":"https://api.github.com/users/ogupte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogupte/subscriptions","organizations_url":"https://api.github.com/users/ogupte/orgs","repos_url":"https://api.github.com/users/ogupte/repos","events_url":"https://api.github.com/users/ogupte/events{/privacy}","received_events_url":"https://api.github.com/users/ogupte/received_events","type":"User","site_admin":false},"body":"make sidebar scrollable and example names excludes leading numbers to establish render order.\r\n\r\naddresses #60","created_at":"2016-03-03T00:22:54Z","updated_at":"2016-03-03T02:10:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"694719bfd419687c4f53c6f98a2e6bdbf738d3ad","assignee":{"login":"ogupte","id":1967266,"avatar_url":"https://avatars.githubusercontent.com/u/1967266?v=3","gravatar_id":"","url":"https://api.github.com/users/ogupte","html_url":"https://github.com/ogupte","followers_url":"https://api.github.com/users/ogupte/followers","following_url":"https://api.github.com/users/ogupte/following{/other_user}","gists_url":"https://api.github.com/users/ogupte/gists{/gist_id}","starred_url":"https://api.github.com/users/ogupte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogupte/subscriptions","organizations_url":"https://api.github.com/users/ogupte/orgs","repos_url":"https://api.github.com/users/ogupte/repos","events_url":"https://api.github.com/users/ogupte/events{/privacy}","received_events_url":"https://api.github.com/users/ogupte/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/appnexus/lucid/pulls/61/commits","review_comments_url":"https://api.github.com/repos/appnexus/lucid/pulls/61/comments","review_comment_url":"https://api.github.com/repos/appnexus/lucid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appnexus/lucid/issues/61/comments","statuses_url":"https://api.github.com/repos/appnexus/lucid/statuses/d9252727fc0f4abea4114899036d0be0c9264fb6","head":{"label":"appnexus:documentation/examples-order-and-menu","ref":"documentation/examples-order-and-menu","sha":"d9252727fc0f4abea4114899036d0be0c9264fb6","user":{"login":"appnexus","id":1664176,"avatar_url":"https://avatars.githubusercontent.com/u/1664176?v=3","gravatar_id":"","url":"https://api.github.com/users/appnexus","html_url":"https://github.com/appnexus","followers_url":"https://api.github.com/users/appnexus/followers","following_url":"https://api.github.com/users/appnexus/following{/other_user}","gists_url":"https://api.github.com/users/appnexus/gists{/gist_id}","starred_url":"https://api.github.com/users/appnexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appnexus/subscriptions","organizations_url":"https://api.github.com/users/appnexus/orgs","repos_url":"https://api.github.com/users/appnexus/repos","events_url":"https://api.github.com/users/appnexus/events{/privacy}","received_events_url":"https://api.github.com/users/appnexus/received_events","type":"Organization","site_admin":false},"repo":{"id":51951143,"name":"lucid","full_name":"appnexus/lucid","owner":{"login":"appnexus","id":1664176,"avatar_url":"https://avatars.githubusercontent.com/u/1664176?v=3","gravatar_id":"","url":"https://api.github.com/users/appnexus","html_url":"https://github.com/appnexus","followers_url":"https://api.github.com/users/appnexus/followers","following_url":"https://api.github.com/users/appnexus/following{/other_user}","gists_url":"https://api.github.com/users/appnexus/gists{/gist_id}","starred_url":"https://api.github.com/users/appnexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appnexus/subscriptions","organizations_url":"https://api.github.com/users/appnexus/orgs","repos_url":"https://api.github.com/users/appnexus/repos","events_url":"https://api.github.com/users/appnexus/events{/privacy}","received_events_url":"https://api.github.com/users/appnexus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appnexus/lucid","description":"A UI component library from AppNexus.","fork":false,"url":"https://api.github.com/repos/appnexus/lucid","forks_url":"https://api.github.com/repos/appnexus/lucid/forks","keys_url":"https://api.github.com/repos/appnexus/lucid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appnexus/lucid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appnexus/lucid/teams","hooks_url":"https://api.github.com/repos/appnexus/lucid/hooks","issue_events_url":"https://api.github.com/repos/appnexus/lucid/issues/events{/number}","events_url":"https://api.github.com/repos/appnexus/lucid/events","assignees_url":"https://api.github.com/repos/appnexus/lucid/assignees{/user}","branches_url":"https://api.github.com/repos/appnexus/lucid/branches{/branch}","tags_url":"https://api.github.com/repos/appnexus/lucid/tags","blobs_url":"https://api.github.com/repos/appnexus/lucid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appnexus/lucid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appnexus/lucid/git/refs{/sha}","trees_url":"https://api.github.com/repos/appnexus/lucid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appnexus/lucid/statuses/{sha}","languages_url":"https://api.github.com/repos/appnexus/lucid/languages","stargazers_url":"https://api.github.com/repos/appnexus/lucid/stargazers","contributors_url":"https://api.github.com/repos/appnexus/lucid/contributors","subscribers_url":"https://api.github.com/repos/appnexus/lucid/subscribers","subscription_url":"https://api.github.com/repos/appnexus/lucid/subscription","commits_url":"https://api.github.com/repos/appnexus/lucid/commits{/sha}","git_commits_url":"https://api.github.com/repos/appnexus/lucid/git/commits{/sha}","comments_url":"https://api.github.com/repos/appnexus/lucid/comments{/number}","issue_comment_url":"https://api.github.com/repos/appnexus/lucid/issues/comments{/number}","contents_url":"https://api.github.com/repos/appnexus/lucid/contents/{+path}","compare_url":"https://api.github.com/repos/appnexus/lucid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appnexus/lucid/merges","archive_url":"https://api.github.com/repos/appnexus/lucid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appnexus/lucid/downloads","issues_url":"https://api.github.com/repos/appnexus/lucid/issues{/number}","pulls_url":"https://api.github.com/repos/appnexus/lucid/pulls{/number}","milestones_url":"https://api.github.com/repos/appnexus/lucid/milestones{/number}","notifications_url":"https://api.github.com/repos/appnexus/lucid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appnexus/lucid/labels{/name}","releases_url":"https://api.github.com/repos/appnexus/lucid/releases{/id}","deployments_url":"https://api.github.com/repos/appnexus/lucid/deployments","created_at":"2016-02-17T19:59:27Z","updated_at":"2016-03-01T23:31:10Z","pushed_at":"2016-03-03T01:27:43Z","git_url":"git://github.com/appnexus/lucid.git","ssh_url":"git@github.com:appnexus/lucid.git","clone_url":"https://github.com/appnexus/lucid.git","svn_url":"https://github.com/appnexus/lucid","homepage":"","size":250,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":13,"default_branch":"master"}},"base":{"label":"appnexus:master","ref":"master","sha":"dd92256de7f6cfe83e5da83515b91e524f050edc","user":{"login":"appnexus","id":1664176,"avatar_url":"https://avatars.githubusercontent.com/u/1664176?v=3","gravatar_id":"","url":"https://api.github.com/users/appnexus","html_url":"https://github.com/appnexus","followers_url":"https://api.github.com/users/appnexus/followers","following_url":"https://api.github.com/users/appnexus/following{/other_user}","gists_url":"https://api.github.com/users/appnexus/gists{/gist_id}","starred_url":"https://api.github.com/users/appnexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appnexus/subscriptions","organizations_url":"https://api.github.com/users/appnexus/orgs","repos_url":"https://api.github.com/users/appnexus/repos","events_url":"https://api.github.com/users/appnexus/events{/privacy}","received_events_url":"https://api.github.com/users/appnexus/received_events","type":"Organization","site_admin":false},"repo":{"id":51951143,"name":"lucid","full_name":"appnexus/lucid","owner":{"login":"appnexus","id":1664176,"avatar_url":"https://avatars.githubusercontent.com/u/1664176?v=3","gravatar_id":"","url":"https://api.github.com/users/appnexus","html_url":"https://github.com/appnexus","followers_url":"https://api.github.com/users/appnexus/followers","following_url":"https://api.github.com/users/appnexus/following{/other_user}","gists_url":"https://api.github.com/users/appnexus/gists{/gist_id}","starred_url":"https://api.github.com/users/appnexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appnexus/subscriptions","organizations_url":"https://api.github.com/users/appnexus/orgs","repos_url":"https://api.github.com/users/appnexus/repos","events_url":"https://api.github.com/users/appnexus/events{/privacy}","received_events_url":"https://api.github.com/users/appnexus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appnexus/lucid","description":"A UI component library from AppNexus.","fork":false,"url":"https://api.github.com/repos/appnexus/lucid","forks_url":"https://api.github.com/repos/appnexus/lucid/forks","keys_url":"https://api.github.com/repos/appnexus/lucid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appnexus/lucid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appnexus/lucid/teams","hooks_url":"https://api.github.com/repos/appnexus/lucid/hooks","issue_events_url":"https://api.github.com/repos/appnexus/lucid/issues/events{/number}","events_url":"https://api.github.com/repos/appnexus/lucid/events","assignees_url":"https://api.github.com/repos/appnexus/lucid/assignees{/user}","branches_url":"https://api.github.com/repos/appnexus/lucid/branches{/branch}","tags_url":"https://api.github.com/repos/appnexus/lucid/tags","blobs_url":"https://api.github.com/repos/appnexus/lucid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appnexus/lucid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appnexus/lucid/git/refs{/sha}","trees_url":"https://api.github.com/repos/appnexus/lucid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appnexus/lucid/statuses/{sha}","languages_url":"https://api.github.com/repos/appnexus/lucid/languages","stargazers_url":"https://api.github.com/repos/appnexus/lucid/stargazers","contributors_url":"https://api.github.com/repos/appnexus/lucid/contributors","subscribers_url":"https://api.github.com/repos/appnexus/lucid/subscribers","subscription_url":"https://api.github.com/repos/appnexus/lucid/subscription","commits_url":"https://api.github.com/repos/appnexus/lucid/commits{/sha}","git_commits_url":"https://api.github.com/repos/appnexus/lucid/git/commits{/sha}","comments_url":"https://api.github.com/repos/appnexus/lucid/comments{/number}","issue_comment_url":"https://api.github.com/repos/appnexus/lucid/issues/comments{/number}","contents_url":"https://api.github.com/repos/appnexus/lucid/contents/{+path}","compare_url":"https://api.github.com/repos/appnexus/lucid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appnexus/lucid/merges","archive_url":"https://api.github.com/repos/appnexus/lucid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appnexus/lucid/downloads","issues_url":"https://api.github.com/repos/appnexus/lucid/issues{/number}","pulls_url":"https://api.github.com/repos/appnexus/lucid/pulls{/number}","milestones_url":"https://api.github.com/repos/appnexus/lucid/milestones{/number}","notifications_url":"https://api.github.com/repos/appnexus/lucid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appnexus/lucid/labels{/name}","releases_url":"https://api.github.com/repos/appnexus/lucid/releases{/id}","deployments_url":"https://api.github.com/repos/appnexus/lucid/deployments","created_at":"2016-02-17T19:59:27Z","updated_at":"2016-03-01T23:31:10Z","pushed_at":"2016-03-03T01:27:43Z","git_url":"git://github.com/appnexus/lucid.git","ssh_url":"git@github.com:appnexus/lucid.git","clone_url":"https://github.com/appnexus/lucid.git","svn_url":"https://github.com/appnexus/lucid","homepage":"","size":250,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appnexus/lucid/pulls/61"},"html":{"href":"https://github.com/appnexus/lucid/pull/61"},"issue":{"href":"https://api.github.com/repos/appnexus/lucid/issues/61"},"comments":{"href":"https://api.github.com/repos/appnexus/lucid/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/appnexus/lucid/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/appnexus/lucid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appnexus/lucid/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/appnexus/lucid/statuses/d9252727fc0f4abea4114899036d0be0c9264fb6"}}}}