Skip to content
Snippets Groups Projects
Commit a238e6ea authored by fauno's avatar fauno
Browse files

Merge branch 'release/0.0.5'

parents 376b24d5 1679d01f
Branches
Tags 0.0.5
No related merge requests found
Copyright (c) 2012 Nicolás Reynolds <fauno@endefensadelsl.org>
Mauricio Pasquier Juan <mpj@endefensadelsl.org>
Copyright (c) 2012-2013 Nicolás Reynolds <fauno@endefensadelsl.org>
2012-2013 Mauricio Pasquier Juan <mpj@endefensadelsl.org>
2013 Brian Candler <b.candler@pobox.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
......
......@@ -79,6 +79,15 @@ other available formats from the post itself:
{% endfor %}
</ul>
## How to install
Add this snippet to your `\_config.yml` on jekyll 1.3
gems: [ 'jekyll-pandoc-multiple-formats' ]
Alternative, see
[here](https://github.com/fauno/jekyll-pandoc-multiple-formats/issues/7).
## How to run
......
......@@ -27,7 +27,7 @@ class PandocGenerator < Generator
# Have a filename!
filename = "#{post.url.gsub(/\//, "-").gsub(/-$/, "")}.#{output}" if filename =~ /\/$/
filename_with_path = File.join(post_path, filename)
filename_with_path = File.join(base_dir, output, filename)
# Special cases, stdout is disabled for these
if ['pdf', 'epub', 'odt', 'docx'].include?(output)
......@@ -56,6 +56,7 @@ class PandocGenerator < Generator
Open3::popen3(pandoc) do |stdin, stdout, stderr|
stdin.puts content
stdin.close
STDERR.print stderr.read
end
# Skip failed files
......@@ -101,6 +102,7 @@ module JekyllPandocMultipleFormats
stdin.close
output = stdout.read.strip
STDERR.print stderr.read
end
......
module JekyllPandocMultipleFormats
VERSION = "0.0.3"
VERSION = "0.0.5"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment