This project is no longer maintained. Check out the official version at https://github.com/nanoc/nanoc-git.
nanoc-git
makes deploying your Nanoc3 site via git as easy as typing:
rake deploy:git
If you're developing a static GitHub Pages site but don't want to use jekyll, and you want to keep your site's source and output in the same repository, nanoc-git
is for you.
-
Add your git repository information to your site configuration file. You'll need to specify a destination remote and branch, and a source branch like so:
deploy: default: dst_remote: origin dst_branch: master src_branch: source
You should set these branches up in advance. The project pages section of the GitHub Pages documentation has some good tips on how to do this (take a look at the
gh-pages
setup instructions). -
Add
nanoc-git
to yourGemfile
or install it manually viagem install nanoc-git
. -
Add
require 'nanoc-git/tasks'
to yourRakefile
. -
Type
rake deploy:git
at the command line to send your compiled site to its destination.
Consider this project alpha quality. It works for me, but I can't make any guarantees for other users. It shouldn't do any damage (you can always revert to an earlier commit), but use it at your own risk.
You're free to do whatever you like with the code. I welcome any and all improvements and suggestions.