Sha256: ef51da9e5c5dda2fafe7b1ebcfc1b26e4ed9b8bcc37fede76837d7627a4c21b1

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

# Middleman::GithubApi

A [Middleman][] extension for GitHub API.

[Middleman]: https://middlemanapp.com/

## 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:

```bash
$ export MIDDLEMAN_GITHUB_API_ACCESS_TOKEN=xxx
```

config.rb:

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

source:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-github_api-0.0.1 README.md