Skip to content

Instantly share code, notes, and snippets.

@optikfluffel
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save optikfluffel/9953679 to your computer and use it in GitHub Desktop.
Save optikfluffel/9953679 to your computer and use it in GitHub Desktop.
After setting up my gh-pages branch according to a short howto from chrisjacob (https://gist.github.com/chrisjacob/825950) I added this little post-commit hook to automatically update the docs generated from ex_doc for a little Elixir playground I have.
#!/bin/bash
git checkout master
mix docs
cd docs/
git checkout gh-pages
git add .
git commit -m "update documentation"
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment