{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/comments/22496116","id":22496116,"diff_hunk":"@@ -0,0 +1,50 @@\n+{#\n+    versions.html\n+    ~~~~~~~~~~~~~~~~~~~~~\n+    Sphinx sidebar template: \"CDAP Documentation Versions\" links.\n+\n+    Requires a JSONP file at http://docs.cask.co/cdap/json-versions.js in the format:\n+\n+      versionscallback({ \"development\": \"2.6.0-SNAPSHOT\", \"current\": \"2.5.2\", \"versions\": [\"2.5.1\", \"2.5.0\"] });\n+      \n+    One development version; one current version; list of additional versions\n+    the tool versionscallback-gen.py will generate this from scanning the current directory\n+\n+#}\n+  <div role=\"note\" aria-label=\"versions links\">\n+  <script type=\"text/javascript\">\n+    var this_version = \"{{ release }}\";\n+    var writelink = (function(dir, title, label){\n+      var style_o = '';\n+      var style_c = '';\n+      if (dir == this_version) {\n+        style_o = '<b>';\n+        style_c = '</b>';\n+      }\n+      document.write('<li>' + style_o + '<a href=\"http://docs.cask.co/cdap/' + dir + '/index.html\"' + \n+                     'rel=\"nofollow\" title=\"' + title + '\">' + label + '</a>' + style_c + '</li>');\n+    })\n+    window.versionscallback = (function(data){\n+      if (data) {\n+        document.write('<h3>Versions</h3>');\n+        document.write('<ul class=\"this-page-menu\">');\n+      }\n+//     if (data.development) {\n+//       writelink(data.development, \"Development Version\", \"CDAP Version \" + data.development);\n+//     }\n+      if (data.current) {\n+        writelink(\"current\", \"Current CDAP Release\", \"CDAP Version \" + data.current);\n+      }\n+      if (data.versions) {\n+        var i;\n+        for (i in data.versions) {\n+          writelink(data.versions[i], \"\", \"CDAP Version \" + data.versions[i]);\n+        }\n+      }\n+      if (data) {\n+        document.write('</ul>');\n+      }\n+    })","path":"cdap-docs/_common/_themes/cdap/versions.html","position":47,"original_position":47,"commit_id":"f87ab275d865da42f37069049195a21bde3bac07","original_commit_id":"f87ab275d865da42f37069049195a21bde3bac07","user":{"login":"gaarf","id":205004,"avatar_url":"https://avatars.githubusercontent.com/u/205004?v=3","gravatar_id":"","url":"https://api.github.com/users/gaarf","html_url":"https://github.com/gaarf","followers_url":"https://api.github.com/users/gaarf/followers","following_url":"https://api.github.com/users/gaarf/following{/other_user}","gists_url":"https://api.github.com/users/gaarf/gists{/gist_id}","starred_url":"https://api.github.com/users/gaarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaarf/subscriptions","organizations_url":"https://api.github.com/users/gaarf/orgs","repos_url":"https://api.github.com/users/gaarf/repos","events_url":"https://api.github.com/users/gaarf/events{/privacy}","received_events_url":"https://api.github.com/users/gaarf/received_events","type":"User","site_admin":false},"body":"replace the closing parens with a semi-colon;","created_at":"2015-01-05T22:48:51Z","updated_at":"2015-01-05T22:48:51Z","html_url":"https://github.com/caskdata/cdap/pull/902#discussion_r22496116","pull_request_url":"https://api.github.com/repos/caskdata/cdap/pulls/902","_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments/22496116"},"html":{"href":"https://github.com/caskdata/cdap/pull/902#discussion_r22496116"},"pull_request":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/902"}}},"pull_request":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/902","id":26732018,"html_url":"https://github.com/caskdata/cdap/pull/902","diff_url":"https://github.com/caskdata/cdap/pull/902.diff","patch_url":"https://github.com/caskdata/cdap/pull/902.patch","issue_url":"https://api.github.com/repos/caskdata/cdap/issues/902","number":902,"state":"open","locked":false,"title":"Create sidebar list of documentation versions","user":{"login":"awholegunch","id":6394794,"avatar_url":"https://avatars.githubusercontent.com/u/6394794?v=3","gravatar_id":"","url":"https://api.github.com/users/awholegunch","html_url":"https://github.com/awholegunch","followers_url":"https://api.github.com/users/awholegunch/followers","following_url":"https://api.github.com/users/awholegunch/following{/other_user}","gists_url":"https://api.github.com/users/awholegunch/gists{/gist_id}","starred_url":"https://api.github.com/users/awholegunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awholegunch/subscriptions","organizations_url":"https://api.github.com/users/awholegunch/orgs","repos_url":"https://api.github.com/users/awholegunch/repos","events_url":"https://api.github.com/users/awholegunch/events{/privacy}","received_events_url":"https://api.github.com/users/awholegunch/received_events","type":"User","site_admin":false},"body":"[Example Documentation Staged] (http://stg-web101.sw.joyent.continuuity.net/cdap/2.6.0-SNAPSHOT-r2.6.0_doc_versions/en/index.html)\r\n\r\n- Adds a list of different CDAP versions to the left sidebar of the documentation\r\n- Adds a version to the top of the page (\"CDAP Documentation v2.6.0\")\r\n- Removes the duplicate list of manuals on the first index page\r\n- Corrects a minor typographical mistake\r\n- Removed the hard-coding of certain files in the CDAP Theme, and replaced that with a mechanism in the files themselves\r\n- Removed duplicate use of strings (where possible) to prevent errors\r\n\r\nThe list is generated on the fly, using a JSONP list maintained on the web server. This means:\r\n- If there is no internet connection, there is no list\r\n- If the list changes in the future, it automatically changes to reflect the currently available versions (or, at least, the ones we want to mention)\r\n\r\nCaveats: if you are looking at a development version (such as 2.6.0-SNAPSHOT) it does not show in the list. Nor is there a link to any local (on disc) versions, including the one you may be browsing. \r\n\r\nFix for [CDAP-1094](https://issues.cask.co/browse/CDAP-1094) and [CDAP-1095](https://issues.cask.co/browse/CDAP-1095).","created_at":"2014-12-31T18:44:43Z","updated_at":"2015-01-05T22:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09d27298f2288186d9ad6a10e2b882fc3af930eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caskdata/cdap/pulls/902/commits","review_comments_url":"https://api.github.com/repos/caskdata/cdap/pulls/902/comments","review_comment_url":"https://api.github.com/repos/caskdata/cdap/pulls/comments/{number}","comments_url":"https://api.github.com/repos/caskdata/cdap/issues/902/comments","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/f87ab275d865da42f37069049195a21bde3bac07","head":{"label":"caskdata:feature/r2.6.0_doc_versions","ref":"feature/r2.6.0_doc_versions","sha":"f87ab275d865da42f37069049195a21bde3bac07","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":22542759,"name":"cdap","full_name":"caskdata/cdap","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/cdap","description":"Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments/{number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","created_at":"2014-08-02T09:00:10Z","updated_at":"2015-01-05T18:57:08Z","pushed_at":"2015-01-05T22:47:29Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://cdap.io","size":688820,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":13,"forks":7,"open_issues":13,"watchers":22,"default_branch":"develop"}},"base":{"label":"caskdata:release/2.6.0","ref":"release/2.6.0","sha":"aa613965f5553f426d7ec2d8f232813e4680cf72","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":22542759,"name":"cdap","full_name":"caskdata/cdap","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/cdap","description":"Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments/{number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","created_at":"2014-08-02T09:00:10Z","updated_at":"2015-01-05T18:57:08Z","pushed_at":"2015-01-05T22:47:29Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://cdap.io","size":688820,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":13,"forks":7,"open_issues":13,"watchers":22,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/902"},"html":{"href":"https://github.com/caskdata/cdap/pull/902"},"issue":{"href":"https://api.github.com/repos/caskdata/cdap/issues/902"},"comments":{"href":"https://api.github.com/repos/caskdata/cdap/issues/902/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/902/comments"},"review_comment":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/902/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/cdap/statuses/f87ab275d865da42f37069049195a21bde3bac07"}}}}