Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.06 KB

File metadata and controls

27 lines (14 loc) · 1.06 KB

GitHub Widgets

A fork of JoelSutherland's Github-jQuery-Repo-Widget and some code from dcodeIO (repo no longer exists).

Drop this script on your page and it will build you a beautiful widget that displays the status of your GitHub repo. Requires jQuery.

What does it look like?

Widget Image

See several examples here: http://www.brianchu.com/projects/

How do I use it?

Everwhere you want a widget to be placed, add the following markup:

<div class="github-widget" data-repo="bchu/github-widgets"></div>

Then include the javascript file somewhere after you've include jQuery:

<script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fgithub-widgets.min.js"></script>

That's it! All of the styling is included and image assets are pulled from GitHub.

Building

  1. npm install to install grunt modules. grunt build to create the minified version of github-widgets.js.