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
https://endefensadelsl.org
Other
88 stars 28 forks source link

Unclear how to invoke plugin #7

Closed candlerb closed 10 years ago

candlerb commented 10 years ago

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?

candlerb commented 10 years ago

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)

mauriciopasquier commented 10 years ago

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.

mauriciopasquier commented 10 years ago

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

fauno commented 10 years ago

:)