Embed bitbucket on your site with repo-bitbucket.js

Repo-bitbucket.js is a jQuery plugin that alows embed public bitbucket repository on your site. Repo-bitbucket.js is influenced by Darcy Clarke‘s repo.js.

Repo-bitbucket.js uses (like [repo.js]) Markus Ekwall‘s jQuery Vangogh plugin for styling of file contents.

Example Use

HTML:

<link href='http://fonts.googleapis.com/css?family=Cousine' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link href="repo-bitbucket/repo-bitbucket.css" rel="stylesheet" type='text/css'>
<script src="repo-bitbucket/repo-bitbucket.js" type="text/javascript"></script>

Javascript:

$('#repository').bitbucket({user : 'miroslavmagda', repository : 'repo-bitbucket.js', revision : 'master'});

repo-bitbucket.js demo page

Live demo

All code is open source and dual licensed under GPL and MIT. Feel free to use it.

Leave a Reply

Your email address will not be published. Required fields are marked *