Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nanoc-github

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoc-github

  • 1.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 20 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc