Unable to serve locally
Opened this issue · 7 comments
After cloning a fresh copy of the repository I tried running the site locally with jekyll serve
and I was given the two following errors:
Deprecation: You appear to have pagination turned on, but you haven't included the
jekyll-paginategem. Ensure you have
gems: [jekyll-paginate]in your configuration file.
and
Dependency Error: Yikes! It looks like you don't have pygments or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! Liquid Exception: pygments in /Users/Adam/Projects/dbyll/_posts/2013-11-14-sample.md ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ pygments
It appears that I was able to solve the deprecation error by running gem install jekyll-paginate
in addition to adding gems: [jekyll-paginate]
to _config.yml.
The second error is solved by running gem install pygments.rb
.
While both fixes were pretty simple to track down, I think the README should at least indicate that jekyll-paginate and pygments are dependencies. I'm also very much a novice with Ruby, so I might be misunderstanding something on my end as well.
+1
Is there anything to be done with pygments.rb dependency in this project?
You can add a Gemfile to the project and put these lines
group :jekyll_plugins do
gem "pygments.rb"
end
Thanks @agnivade,
I am not good with the ruby stuff. I am just a jekyll frontend guy 😄. Are you sure about this should be in the jekyll theme?
I did not end up with this error as I probably installed the gem with former jekyll releases.
I also appreciate a pull request though.
I am not habituated with Ruby too .. 😝 . Just came across this wonderful theme while setting up my blog. But yes, reading through the docs, since this is a Ruby project after all, any dependencies should be explicitly mentioned.
Will send a PR soon !
Thanks. Looking forward to.