Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mostlyobvious/nanoc-github

Repository files navigation

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

About

nanoc data source from github repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /