{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/comments/109070676","pull_request_review_id":30148981,"id":109070676,"diff_hunk":"@@ -315,14 +317,21 @@ $(function () {\n   };\n \n   // Update href in navbar\n-  function updateHref() {\n-    var toc = $('#sidetoc');\n-    var breadcrumb = new Breadcrumb();\n-    loadNavbar();\n-    loadToc();\n+  function renderNavbar() {\n+    var navbar = $('#navbar ul')[0];\n+    if (typeof (navbar) === 'undefined') {\n+      loadNavbar();\n+    } else {\n+      $('#navbar ul a.active').parents('li').addClass(active);\n+      renderBreadcrumb();","path":"src/docfx.website.themes/default/styles/docfx.js","position":146,"original_position":146,"commit_id":"d43404c40aaa6845b956b4a9e7d6374580f8c322","original_commit_id":"d43404c40aaa6845b956b4a9e7d6374580f8c322","user":{"login":"vicancy","id":668244,"avatar_url":"https://avatars3.githubusercontent.com/u/668244?v=3","gravatar_id":"","url":"https://api.github.com/users/vicancy","html_url":"https://github.com/vicancy","followers_url":"https://api.github.com/users/vicancy/followers","following_url":"https://api.github.com/users/vicancy/following{/other_user}","gists_url":"https://api.github.com/users/vicancy/gists{/gist_id}","starred_url":"https://api.github.com/users/vicancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicancy/subscriptions","organizations_url":"https://api.github.com/users/vicancy/orgs","repos_url":"https://api.github.com/users/vicancy/repos","events_url":"https://api.github.com/users/vicancy/events{/privacy}","received_events_url":"https://api.github.com/users/vicancy/received_events","type":"User","site_admin":false},"body":"yes, each time breadcrumb contains potential changes, we re-generate breadcrumb, because both navbar and sidebar are load asynchronously, the order is not guaranteed. \r\n\r\n---\r\nIn reply to: [108879208](https://github.com/dotnet/docfx/pull/1509#discussion_r108879208) [](ancestors = 108879208)","created_at":"2017-03-31T01:04:23Z","updated_at":"2017-03-31T01:04:23Z","html_url":"https://github.com/dotnet/docfx/pull/1509#discussion_r109070676","pull_request_url":"https://api.github.com/repos/dotnet/docfx/pulls/1509","_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments/109070676"},"html":{"href":"https://github.com/dotnet/docfx/pull/1509#discussion_r109070676"},"pull_request":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/1509"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/1509","id":113376095,"html_url":"https://github.com/dotnet/docfx/pull/1509","diff_url":"https://github.com/dotnet/docfx/pull/1509.diff","patch_url":"https://github.com/dotnet/docfx/pull/1509.patch","issue_url":"https://api.github.com/repos/dotnet/docfx/issues/1509","number":1509,"state":"open","locked":false,"title":"Re-format docfx.js, to support both default and statictoc","user":{"login":"vicancy","id":668244,"avatar_url":"https://avatars3.githubusercontent.com/u/668244?v=3","gravatar_id":"","url":"https://api.github.com/users/vicancy","html_url":"https://github.com/vicancy","followers_url":"https://api.github.com/users/vicancy/followers","following_url":"https://api.github.com/users/vicancy/following{/other_user}","gists_url":"https://api.github.com/users/vicancy/gists{/gist_id}","starred_url":"https://api.github.com/users/vicancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicancy/subscriptions","organizations_url":"https://api.github.com/users/vicancy/orgs","repos_url":"https://api.github.com/users/vicancy/repos","events_url":"https://api.github.com/users/vicancy/events{/privacy}","received_events_url":"https://api.github.com/users/vicancy/received_events","type":"User","site_admin":false},"body":"Fix https://github.com/dotnet/docfx/issues/1079","created_at":"2017-03-30T08:49:41Z","updated_at":"2017-03-31T01:04:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33e6671e4679bd26fde05c823559cc9aa25c4694","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/docfx/pulls/1509/commits","review_comments_url":"https://api.github.com/repos/dotnet/docfx/pulls/1509/comments","review_comment_url":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/docfx/issues/1509/comments","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/d43404c40aaa6845b956b4a9e7d6374580f8c322","head":{"label":"vicancy:themes","ref":"themes","sha":"d43404c40aaa6845b956b4a9e7d6374580f8c322","user":{"login":"vicancy","id":668244,"avatar_url":"https://avatars3.githubusercontent.com/u/668244?v=3","gravatar_id":"","url":"https://api.github.com/users/vicancy","html_url":"https://github.com/vicancy","followers_url":"https://api.github.com/users/vicancy/followers","following_url":"https://api.github.com/users/vicancy/following{/other_user}","gists_url":"https://api.github.com/users/vicancy/gists{/gist_id}","starred_url":"https://api.github.com/users/vicancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicancy/subscriptions","organizations_url":"https://api.github.com/users/vicancy/orgs","repos_url":"https://api.github.com/users/vicancy/repos","events_url":"https://api.github.com/users/vicancy/events{/privacy}","received_events_url":"https://api.github.com/users/vicancy/received_events","type":"User","site_admin":false},"repo":{"id":77111138,"name":"docfx","full_name":"vicancy/docfx","owner":{"login":"vicancy","id":668244,"avatar_url":"https://avatars3.githubusercontent.com/u/668244?v=3","gravatar_id":"","url":"https://api.github.com/users/vicancy","html_url":"https://github.com/vicancy","followers_url":"https://api.github.com/users/vicancy/followers","following_url":"https://api.github.com/users/vicancy/following{/other_user}","gists_url":"https://api.github.com/users/vicancy/gists{/gist_id}","starred_url":"https://api.github.com/users/vicancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicancy/subscriptions","organizations_url":"https://api.github.com/users/vicancy/orgs","repos_url":"https://api.github.com/users/vicancy/repos","events_url":"https://api.github.com/users/vicancy/events{/privacy}","received_events_url":"https://api.github.com/users/vicancy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vicancy/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":true,"url":"https://api.github.com/repos/vicancy/docfx","forks_url":"https://api.github.com/repos/vicancy/docfx/forks","keys_url":"https://api.github.com/repos/vicancy/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vicancy/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vicancy/docfx/teams","hooks_url":"https://api.github.com/repos/vicancy/docfx/hooks","issue_events_url":"https://api.github.com/repos/vicancy/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/vicancy/docfx/events","assignees_url":"https://api.github.com/repos/vicancy/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/vicancy/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/vicancy/docfx/tags","blobs_url":"https://api.github.com/repos/vicancy/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vicancy/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vicancy/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/vicancy/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vicancy/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/vicancy/docfx/languages","stargazers_url":"https://api.github.com/repos/vicancy/docfx/stargazers","contributors_url":"https://api.github.com/repos/vicancy/docfx/contributors","subscribers_url":"https://api.github.com/repos/vicancy/docfx/subscribers","subscription_url":"https://api.github.com/repos/vicancy/docfx/subscription","commits_url":"https://api.github.com/repos/vicancy/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/vicancy/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/vicancy/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/vicancy/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/vicancy/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/vicancy/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vicancy/docfx/merges","archive_url":"https://api.github.com/repos/vicancy/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vicancy/docfx/downloads","issues_url":"https://api.github.com/repos/vicancy/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/vicancy/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/vicancy/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/vicancy/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vicancy/docfx/labels{/name}","releases_url":"https://api.github.com/repos/vicancy/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/vicancy/docfx/deployments","created_at":"2016-12-22T04:09:13Z","updated_at":"2016-12-22T04:09:20Z","pushed_at":"2017-03-30T08:48:22Z","git_url":"git://github.com/vicancy/docfx.git","ssh_url":"git@github.com:vicancy/docfx.git","clone_url":"https://github.com/vicancy/docfx.git","svn_url":"https://github.com/vicancy/docfx","homepage":"http://dotnet.github.io/docfx/","size":169297,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"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":"dev"}},"base":{"label":"dotnet:dev","ref":"dev","sha":"7a028d9438a6877917707caa1330375477f5397b","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars3.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38007053,"name":"docfx","full_name":"dotnet/docfx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars3.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":false,"url":"https://api.github.com/repos/dotnet/docfx","forks_url":"https://api.github.com/repos/dotnet/docfx/forks","keys_url":"https://api.github.com/repos/dotnet/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docfx/teams","hooks_url":"https://api.github.com/repos/dotnet/docfx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docfx/events","assignees_url":"https://api.github.com/repos/dotnet/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docfx/tags","blobs_url":"https://api.github.com/repos/dotnet/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docfx/languages","stargazers_url":"https://api.github.com/repos/dotnet/docfx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docfx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docfx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docfx/subscription","commits_url":"https://api.github.com/repos/dotnet/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docfx/merges","archive_url":"https://api.github.com/repos/dotnet/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docfx/downloads","issues_url":"https://api.github.com/repos/dotnet/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docfx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docfx/deployments","created_at":"2015-06-24T19:43:53Z","updated_at":"2017-03-30T07:11:36Z","pushed_at":"2017-03-30T09:25:29Z","git_url":"git://github.com/dotnet/docfx.git","ssh_url":"git@github.com:dotnet/docfx.git","clone_url":"https://github.com/dotnet/docfx.git","svn_url":"https://github.com/dotnet/docfx","homepage":"http://dotnet.github.io/docfx/","size":162190,"stargazers_count":573,"watchers_count":573,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":166,"mirror_url":null,"open_issues_count":101,"forks":166,"open_issues":101,"watchers":573,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/1509"},"html":{"href":"https://github.com/dotnet/docfx/pull/1509"},"issue":{"href":"https://api.github.com/repos/dotnet/docfx/issues/1509"},"comments":{"href":"https://api.github.com/repos/dotnet/docfx/issues/1509/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/1509/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/1509/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/docfx/statuses/d43404c40aaa6845b956b4a9e7d6374580f8c322"}}}}
{"actor":{"display_login":"vicancy"}}