If you want to have all this for your own novel, follow these instructions
Now comes the hard part (yes, harder than above), so stay with me here. Install Perl (I said the hard part was starting) and do > cpan Git::Hooks > cpan File::Slurp That presupposses you’ve got perlbrew installed, if you don’t, do sudo apt-get install perlbrew and then perlbrew init and the rest; perlbrew install perl 5.16.3 or whichever one you like the most. Follow instructions from the perlbrew page, anyways. If you don’t have, or don’t want to have, perlbrew do basically the same with sudo in front of it
Now do > cp apps/git-hooks.pl .git/hooks > cd .git/hooks > chmod +x git-hooks.pl > ln -s git-hooks.pl post-commit which will get you automatic sync with GitHub pages.
Get a Travis account and activate the service hook for your project. We are going to use this for spell-check.
If you want to spell-check also in your own computer (hey, you can be in a plane and offline) you’ll have to install also the Hunspell spell checker. You can do it following the instructions in the Travis conf file (hey, if it’s good enough for Travis, it must be good enough for you), that is: > sudo apt-get install libhunspell-1.3-0 hunspell-en-us libhunspell-dev And then the modules mentioned in the module Makefile.PL, that is > cpan Text::Hunspell > cpan Lingua::EN::Fathom with the obvious sudo in front if you don’t use perlbrew.
Edit (text/words.dic) for the specific words in your novel that should pass the spell check, but do not. Remember that the first line contains the number of words.
There’s a shortcut that processed the dictionary and does commit and push for you, it’s at text/commit.pl. You can use it cirectly or do > ln -s text/commit.pl c Remember always to chmod +x commit.pl
Remember that with the post-commit hook you have installed you’ll be doing push in two branches at the same time. If you fall behind in a local installation, you will have to checkout and pull in both; you can’t just do a git pull since you’ll be doing it only on the current branch. Do > git pull > git checkout gh-pages > git pull > git checkout master
And that’s it.