Uses GitHub API to show feed of releases and open bugs for a given project. You can see a live version of releases in action here.
Releases is now packaged as a npm module, you can install it with npm install releases
.
Add the following HTML to the page where you want the releases to be displayed.
<div class="container">
<h1> Known Issues </h1>
<ul id="bugs">
</ul>
<h1> Latest Releases </h1>
<ul id="releases">
</ul>
<p id="more-releases">
</p>
</div>
Load the following scripts on the same page as where you put the code above. (note if you are using Bootstrap you probably are already loading jQuery)
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://raw.githubusercontent.com/levlaz/releases/master/js/marked.js"></script>
<script src="https://raw.githubusercontent.com/levlaz/releases/master/js/moment.js"></script>
<script src="https://raw.githubusercontent.com/levlaz/releases/master/js/releases.js"></script>
Add the Styles from style.css to your existing stylesheet.
/* Style for Releases Plugin */
#releases {
list-style-type: none;
margin: 0;
padding: 0;
}
Update the window.repo
variable on Line 5 of releases.js
to be whatever repo you want to display releases for.