contentful / jekyll-contentful-data-import

Contentful Plugin for the Jekyll Static Site Generator
MIT License
101 stars 32 forks source link

Enable this gem for Github Pages #7

Closed paesku closed 8 years ago

paesku commented 8 years ago

Hi,

I really love your Service and the Jekyll integration. What I miss is using this plugin on GitHub for creating my Site. As far as I understood GitHub has to add this to their plugins whitelist. Is there a workaround?

ivanoats commented 8 years ago

Would running it locally work for you? Or building on a CI service such as Wercker.com ?

paesku commented 8 years ago

@ivanoats Thank you for the tip. I will give it a try. But isn't it just another (unnecessary) step in the process? I have this idea in mind that the customer creates his data, the developer creates the templates with a static site generator and it all becomes live on github.

dlitvakb commented 8 years ago

Hey @paesku, @ivanoats,

Sadly GitHub Pages only allows 1st party Jekyll plugins, and it's a very very short list of 4 plugins total.

The way I've been using it myself, is to locally pull content from Contentful, and then have the static site published on the gh-pages branch. A similar and better documented approach can be found here: http://ixti.net/software/2013/01/28/using-jekyll-plugins-on-github-pages.html.

@ivanoats gave also a nice solution, using a CI service, you could on commit, have jekyll contentful run, then do the steps listed in the link above to push to your Pages site.

This is even possible on Travis CI without much trouble.

I'll write a tutorial about it soon,

Cheers

ivanoats commented 8 years ago

Stay tuned for an announcement from us at http://www.aerboatic.com ;-)

EDIT: oh, it's already live! You can white-list plugins: https://www.aerobatic.com/blog/automated-continuous-deployment-of-jekyll-sites

paesku commented 8 years ago

After fiddling with wercker I made it all run together. My solution triggers wercker on master and pushes only the build content within _site and the help of leipert/step-git-push to the gh-pages branch on github. Thank you guys! Anyhow, @ivanoats your article looks very interesting.