jirutka / rake-jekyll

Rake tasks for Jekyll as a gem.
MIT License
30 stars 3 forks source link

if rake-jekyll generate site from gh-pages all files will be removed #1

Open apla opened 9 years ago

jirutka commented 9 years ago

You obviously shouldn't put source files to the target branch for generated files (gh-pages by default). What else do you expect in this case?

apla commented 9 years ago

Local jekyll saves generated site to the _site folder. Github Pages documentation describe things like: you can use html or you can use jekyll because html is perfectly valid jekyll site. When I run this task, I think site will be generated in _site folder.

Please add minimal check not to rewrite current branch.

Also, add reference reference to the .travis.yml:

branches:
  only:
  - source