Adding sphinx generated documentation as Github pages

For one of my projects, python-weka-wrapper, I used approach for hosting my sphinx-generated documentation. However, was recently down with the documentation no longer accessible. Hence I decided to use the Pages feature from Github. Considering that the documentation doesn’t change very often, I decided to go for manual updates. Here is what I did:

git clone
git checkout --orphan gh-pages
git rm -rf .
<copy sphinx-generated files over from doc/build/html>
touch .nojekyll
git add -A
git commit -a -m "added documentation"
git push origin gh-pages

And, voilĂ , the documentation is served at