{"action":"created","comment":{"url":"https://api.github.com/repos/angular/router/pulls/comments/23294872","id":23294872,"diff_hunk":"@@ -0,0 +1,37 @@\n+\"use strict\";\n+\n+var path = require('canonical-path');\n+\n+/**\n+ * @dgProcessor generateIndexPageProcessor\n+ * @description\n+ * This processor creates a doc that will be rendered as the index page for the app\n+ */\n+module.exports = function generateIndexPageProcessor() {\n+  return {\n+    $runAfter: ['adding-extra-docs'],\n+    $runBefore: ['extra-docs-added'],\n+    $process: function(docs) {\n+\n+      // Collect up all the areas in the docs\n+      var docTypes = {};\n+      docs.forEach(function(doc) {\n+        if ( doc.docType ) {\n+          docTypes[doc.docType] = docTypes[doc.docType] || [];\n+          docTypes[doc.docType].push(doc);\n+        }\n+      });","path":"docs/processors/generateIndexPage.js","position":23,"original_position":23,"commit_id":"555021d56d1988c739b741993749454e65cd2a5d","original_commit_id":"555021d56d1988c739b741993749454e65cd2a5d","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"body":"We just iterate through all the docs and collect them up by docType.","created_at":"2015-01-21T12:17:36Z","updated_at":"2015-01-21T12:17:36Z","html_url":"https://github.com/angular/router/pull/59#discussion_r23294872","pull_request_url":"https://api.github.com/repos/angular/router/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/angular/router/pulls/comments/23294872"},"html":{"href":"https://github.com/angular/router/pull/59#discussion_r23294872"},"pull_request":{"href":"https://api.github.com/repos/angular/router/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/angular/router/pulls/59","id":27754965,"html_url":"https://github.com/angular/router/pull/59","diff_url":"https://github.com/angular/router/pull/59.diff","patch_url":"https://github.com/angular/router/pull/59.patch","issue_url":"https://api.github.com/repos/angular/router/issues/59","number":59,"state":"open","locked":false,"title":"chore(docs): generate an index page","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"body":"Closes #54 ","created_at":"2015-01-21T12:13:42Z","updated_at":"2015-01-21T12:17:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c93940f1ec59a214fb199f0154e119172ce56733","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/router/pulls/59/commits","review_comments_url":"https://api.github.com/repos/angular/router/pulls/59/comments","review_comment_url":"https://api.github.com/repos/angular/router/pulls/comments/{number}","comments_url":"https://api.github.com/repos/angular/router/issues/59/comments","statuses_url":"https://api.github.com/repos/angular/router/statuses/555021d56d1988c739b741993749454e65cd2a5d","head":{"label":"petebacondarwin:dgeni-index","ref":"dgeni-index","sha":"555021d56d1988c739b741993749454e65cd2a5d","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"repo":{"id":29587957,"name":"router","full_name":"petebacondarwin/router","owner":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/petebacondarwin/router","description":"WIP router for Angular 2.0, written in atscript.","fork":true,"url":"https://api.github.com/repos/petebacondarwin/router","forks_url":"https://api.github.com/repos/petebacondarwin/router/forks","keys_url":"https://api.github.com/repos/petebacondarwin/router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/petebacondarwin/router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/petebacondarwin/router/teams","hooks_url":"https://api.github.com/repos/petebacondarwin/router/hooks","issue_events_url":"https://api.github.com/repos/petebacondarwin/router/issues/events{/number}","events_url":"https://api.github.com/repos/petebacondarwin/router/events","assignees_url":"https://api.github.com/repos/petebacondarwin/router/assignees{/user}","branches_url":"https://api.github.com/repos/petebacondarwin/router/branches{/branch}","tags_url":"https://api.github.com/repos/petebacondarwin/router/tags","blobs_url":"https://api.github.com/repos/petebacondarwin/router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/petebacondarwin/router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/petebacondarwin/router/git/refs{/sha}","trees_url":"https://api.github.com/repos/petebacondarwin/router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/petebacondarwin/router/statuses/{sha}","languages_url":"https://api.github.com/repos/petebacondarwin/router/languages","stargazers_url":"https://api.github.com/repos/petebacondarwin/router/stargazers","contributors_url":"https://api.github.com/repos/petebacondarwin/router/contributors","subscribers_url":"https://api.github.com/repos/petebacondarwin/router/subscribers","subscription_url":"https://api.github.com/repos/petebacondarwin/router/subscription","commits_url":"https://api.github.com/repos/petebacondarwin/router/commits{/sha}","git_commits_url":"https://api.github.com/repos/petebacondarwin/router/git/commits{/sha}","comments_url":"https://api.github.com/repos/petebacondarwin/router/comments{/number}","issue_comment_url":"https://api.github.com/repos/petebacondarwin/router/issues/comments/{number}","contents_url":"https://api.github.com/repos/petebacondarwin/router/contents/{+path}","compare_url":"https://api.github.com/repos/petebacondarwin/router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/petebacondarwin/router/merges","archive_url":"https://api.github.com/repos/petebacondarwin/router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/petebacondarwin/router/downloads","issues_url":"https://api.github.com/repos/petebacondarwin/router/issues{/number}","pulls_url":"https://api.github.com/repos/petebacondarwin/router/pulls{/number}","milestones_url":"https://api.github.com/repos/petebacondarwin/router/milestones{/number}","notifications_url":"https://api.github.com/repos/petebacondarwin/router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/petebacondarwin/router/labels{/name}","releases_url":"https://api.github.com/repos/petebacondarwin/router/releases{/id}","created_at":"2015-01-21T12:12:41Z","updated_at":"2015-01-21T12:12:41Z","pushed_at":"2015-01-21T12:13:13Z","git_url":"git://github.com/petebacondarwin/router.git","ssh_url":"git@github.com:petebacondarwin/router.git","clone_url":"https://github.com/petebacondarwin/router.git","svn_url":"https://github.com/petebacondarwin/router","homepage":"","size":9855,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"angular:master","ref":"master","sha":"6eb8e6c6cd42354286ea164a8af219ff0e06e31b","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":21053059,"name":"router","full_name":"angular/router","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/router","description":"WIP router for Angular 2.0, written in atscript.","fork":false,"url":"https://api.github.com/repos/angular/router","forks_url":"https://api.github.com/repos/angular/router/forks","keys_url":"https://api.github.com/repos/angular/router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/router/teams","hooks_url":"https://api.github.com/repos/angular/router/hooks","issue_events_url":"https://api.github.com/repos/angular/router/issues/events{/number}","events_url":"https://api.github.com/repos/angular/router/events","assignees_url":"https://api.github.com/repos/angular/router/assignees{/user}","branches_url":"https://api.github.com/repos/angular/router/branches{/branch}","tags_url":"https://api.github.com/repos/angular/router/tags","blobs_url":"https://api.github.com/repos/angular/router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/router/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/router/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/router/languages","stargazers_url":"https://api.github.com/repos/angular/router/stargazers","contributors_url":"https://api.github.com/repos/angular/router/contributors","subscribers_url":"https://api.github.com/repos/angular/router/subscribers","subscription_url":"https://api.github.com/repos/angular/router/subscription","commits_url":"https://api.github.com/repos/angular/router/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/router/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/router/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/router/issues/comments/{number}","contents_url":"https://api.github.com/repos/angular/router/contents/{+path}","compare_url":"https://api.github.com/repos/angular/router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/router/merges","archive_url":"https://api.github.com/repos/angular/router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/router/downloads","issues_url":"https://api.github.com/repos/angular/router/issues{/number}","pulls_url":"https://api.github.com/repos/angular/router/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/router/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/router/labels{/name}","releases_url":"https://api.github.com/repos/angular/router/releases{/id}","created_at":"2014-06-20T21:31:07Z","updated_at":"2015-01-20T22:09:37Z","pushed_at":"2015-01-20T22:09:37Z","git_url":"git://github.com/angular/router.git","ssh_url":"git@github.com:angular/router.git","clone_url":"https://github.com/angular/router.git","svn_url":"https://github.com/angular/router","homepage":"","size":9855,"stargazers_count":172,"watchers_count":172,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":34,"forks":14,"open_issues":34,"watchers":172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/router/pulls/59"},"html":{"href":"https://github.com/angular/router/pull/59"},"issue":{"href":"https://api.github.com/repos/angular/router/issues/59"},"comments":{"href":"https://api.github.com/repos/angular/router/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/router/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/router/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/angular/router/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/angular/router/statuses/555021d56d1988c739b741993749454e65cd2a5d"}}}}