Adding sphinx generated documentation as Github pages

For one of my projects, python-weka-wrapper, I used pythonhosted.org approach for hosting my sphinx-generated documentation. However, pythonhosted.org 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 https://github.com/fracpete/python-weka-wrapper3.git python-weka-wrapper3.gh-pages
cd python-weka-wrapper3.gh-pages
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 http://fracpete.github.io/python-weka-wrapper/

1 Comment

  1. YYM

    I have a question about the pww https://stackoverflow.com/questions/45709168/python-weka-wrapper3-m5p-return-java-error
    Could you check it when you are free? please

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *