0.0
No commit activity in last 3 years
No release in over 3 years
Nanoc content source from git repository. A way to have your writing in public and open for edition while not being distracted by static site generator trivia this content is usually mixed with.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.1.6, < 2.0
~> 4.0
~> 4.0
 Project Readme

Nanoc::Github

Nanoc content source from git repository. A way to have your writing in public and open for editing while not being distracted by static site generator trivia this content is usually mixed with.

Usage

Add to Gemfile in your nanoc project:

gem "nanoc-github"

Then tell nanoc to load it in lib/default.rb:

require "nanoc/github"

At last, enable github data source in nanoc.yaml:

data_sources:
  - type: github
    items_root: /posts                             # the root where items should be mounted
    repository: arkency/posts                      # organization/repository on github to use as a source of content
    encoding: utf-8                                # how to decode content                                            (default: utf-8)
    access_token: secret123                        # github access token, not required for public repositories        (default: nil)
    path: posts/                                   # subdirectory of the content in given repository                  (default: nil)
    concurrency: 10                                # how many threads to spawn to fetch data                          (default: 5)
    verbose: true                                  # show HTTP cache hit/miss on STDOUT                               (default: false)
    max_age: 600                                   # override time in which cached content is considered to be fresh  (default: 60)

Status

build status gem version