Introducing (Unofficial) GitHub Buttons

Today I’m stoked to announce the release of my unofficial GitHub buttons! For months I’ve wanted to provide consistent, easy-to-use links back to my projects’ source and documentation on GitHub. A couple of weeks ago I was finally able to create a de…


This content originally appeared on @mdo and was authored by Mark Otto

GitHub Buttons

Today I’m stoked to announce the release of my unofficial GitHub buttons! For months I’ve wanted to provide consistent, easy-to-use links back to my projects’ source and documentation on GitHub. A couple of weeks ago I was finally able to create a decent method of doing just that. Now, I want to share them with everyone and get feedback from the community.

Functionality

For their initial release (and due to lack of time and expertise), functionality is limited to a static link back to your repo and dynamic counts for the number of watchers and forks on any public repo. In the future I’d love to expand on this to support user profiles and—one day—dynamic buttons via oAuth.

How to use

Using these new buttons is as easy as adding an iframe and setting some paramaters in the URL. It’s fast, easy, and pretty lightweight. The best part is that these are hosted on GitHub pages, which means you don’t need to host the code yourself. Just add and go. It also comes with a few options: watch or fork button, count or no count, and default or large size.

The two buttons above are live examples of Bootstrap’s watcher and fork counts. Everything but the size of the iframe is configurable via URL parameters. (This was the easiest and fastest way for me to get this project out the door.)

Get it on GitHub

You can find the source on GitHub. Feel free to download, fork, or watch it from there. If you have any feedback or want to contribute to the project, go ahead and open an issue or submit a pull request.


This content originally appeared on @mdo and was authored by Mark Otto


Print Share Comment Cite Upload Translate Updates
APA

Mark Otto | Sciencx (2011-11-26T00:00:00+00:00) Introducing (Unofficial) GitHub Buttons. Retrieved from https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/

MLA
" » Introducing (Unofficial) GitHub Buttons." Mark Otto | Sciencx - Saturday November 26, 2011, https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/
HARVARD
Mark Otto | Sciencx Saturday November 26, 2011 » Introducing (Unofficial) GitHub Buttons., viewed ,<https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/>
VANCOUVER
Mark Otto | Sciencx - » Introducing (Unofficial) GitHub Buttons. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/
CHICAGO
" » Introducing (Unofficial) GitHub Buttons." Mark Otto | Sciencx - Accessed . https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/
IEEE
" » Introducing (Unofficial) GitHub Buttons." Mark Otto | Sciencx [Online]. Available: https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/. [Accessed: ]
rf:citation
» Introducing (Unofficial) GitHub Buttons | Mark Otto | Sciencx | https://www.scien.cx/2011/11/26/introducing-unofficial-github-buttons/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.