fauno / jekyll-pandoc-multiple-formats

Use pandoc on jekyll to generate posts in multiple formats. Development has moved to https://0xacab.org/edsl/jekyll-pandoc-multiple-formats

Home Page:https://endefensadelsl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unclear how to invoke plugin

candlerb opened this issue · comments

The directions just say jekyll build without any further notes.

After some experimentation, it appears you can create _plugins/pandoc.rb which contains

$:.unshift '/path/to/jekyll-pandoc-multiple-formats/lib'
require 'jekyll-pandoc-multiple-formats'

Or if you have the plugin as a gem, it should be possible to edit _config.yml and set

gems: [jekyll-pandoc-multiple-formats]

Could these options be mentioned somewhere?

Note: if version.rb were folded into jekyll-pandoc-multiple-formats.rb then you could simply copy jekyll-pandoc-multiple-formats.rb into the _plugins/ directory (same as jekyll-pandoc-plugin)

Check out this method of loading from this Gemfile. It allows you to use a Gemfile with gems until jekyll standarizes how to do it.

Oh, I wasn't aware of jekyll 1.3 and gems: [] :P

:)