Browse Source

Updated Github API to V3.

Github API V2 has been removed.  The response data format also changed.
unreleased_contents
Zhao Lü 12 years ago
committed by Brandon Mathis
parent
commit
6c26f907cc
  1. 2
      .themes/classic/source/javascripts/github.js

2
.themes/classic/source/javascripts/github.js

@ -3,7 +3,7 @@ var github = (function(){
var i = 0, fragment = '', t = $(target)[0];
for(i = 0; i < repos.length; i++) {
fragment += '<li><a href="'+repos[i].url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>';
fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+(repos[i].description||'')+'</p></li>';
}
t.innerHTML = fragment;
}

Loading…
Cancel
Save