No commit activity in last 3 years
No release in over 3 years
A Middleman extension for GitHub API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 4.0
 Project Readme

Middleman::GithubApi

Gem Version

A Middleman extension for GitHub API as Data Files.

Installation

Add this line to your application's Gemfile:

gem 'middleman-github_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install middleman-github_api

Usage

Set access token for environment variables:

$ export MIDDLEMAN_GITHUB_API_ACCESS_TOKEN=xxx

config.rb:

activate :github_api, repo: "myokoym/middleman-github_api"

source:

<% data.github_api[:commits].each do |commit| %>
  <% commit.files.each do |file| %>
    <pre>
      <%= file.patch %>
    </pre>
  <% end %>
<% end %>

NOTICE: The current version (0.0.1) only gets today's commits.

Example

https://github.com/myokoym/middleman-github_api-example