Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'exclude' configuration option seems to be mandatory #1

Open
spier opened this issue May 6, 2012 · 0 comments
Open

'exclude' configuration option seems to be mandatory #1

spier opened this issue May 6, 2012 · 0 comments

Comments

@spier
Copy link

spier commented May 6, 2012

I created the _epub.yml exactly as outlined in your README:

epub:
  name: "My Jekyll Blog"
  lang: en
  identifier: my_blog.example.com-123456

When running jekyll_epub I got this error:

** Configuration from [...]/_epub.yml
[...]/.rvm/gems/ruby-1.8.7-p352/gems/jekyll-epub-0.0.3/bin/../lib/jekyll/epub.rb:111:in `package_epub': undefined method `include?' for nil:NilClass (NoMethodError)
    from [...]/.rvm/gems/ruby-1.8.7-p352/gems/jekyll-epub-0.0.3/bin/../lib/jekyll/epub.rb:106:in `each'
    from [...]/.rvm/gems/ruby-1.8.7-p352/gems/jekyll-epub-0.0.3/bin/../lib/jekyll/epub.rb:106:in `package_epub'
    from [...]/.rvm/gems/ruby-1.8.7-p352/gems/jekyll-epub-0.0.3/bin/../lib/jekyll/epub.rb:76:in `epub'
    from [...]/.rvm/gems/ruby-1.8.7-p352/gems/jekyll-epub-0.0.3/bin/../lib/jekyll/epub.rb:235:in `create'
    from [...]/.rvm/gems/ruby-1.8.7-p352/gems/jekyll-epub-0.0.3/bin/jekyll_epub:103
    from [...]/.rvm/gems/ruby-1.8.7-p352/bin/jekyll_epub:19:in `load'
    from [...]/.rvm/gems/ruby-1.8.7-p352/bin/jekyll_epub:19

Line 111 of epub.rb assumes that the exclude configuration option will always exist.

When adding an empty exclude option to _epub.yml the epub generation worked just fine.

# A list of directories and files to exclude from the conversion
exclude: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant