cammanderson/mmb-github

Github Article Service for mmb

v1.0-alpha 2014-08-19 10:47 UTC

This package is not auto-updated.

Last update: 2024-05-21 01:21:47 UTC


README

Github Article Service for Minimalist Markdown Blog Check-in your blog articles to your github account and make them accessible to your blog.Supports branching strategy, allowing you to configure your local blog to read a separate branch.

Usage

Composer

{
    "require": {
        "cammanderson/mmb" : "@dev"
        "cammanderson/mmb-github" : "@dev"
    }
}

Update your pimple

// Silex configuration
$app->register(new MMB\ArticleServiceProvider());

// Specify articles to be sourced from github
$app['article_service'] = $app->share(function ($app) {
    $githubService = new \MMB\Github\GithubArticleService('cammanderson', 'mmb-github-example', 'master');
    $githubService->setProvider($app['article_provider']);

    return $githubService;
});

Configuration

  • Branch (e.g. look to master)
  • Github Authentication (for private github repositories)
  • Regular expressions for matching article naming convention

See example