Skip to content

Instantly share code, notes, and snippets.

@alexlib
Created April 25, 2011 22:27
Show Gist options
  • Save alexlib/941388 to your computer and use it in GitHub Desktop.
Save alexlib/941388 to your computer and use it in GitHub Desktop.
Combination of few things to make Sphinx documentation working for my Github repository

Combination of two great advices to make Sphinx documentation working for my project

** Author: ** Alex Liberzon http://github.com/alexlib

  1. Followed the "grandparent" advice from https://gist.github.com/833223
  • it means that we have openpiv-python/master and openpiv-python/gh-pages directories, each has its own .git structure and doesn't know one about another.
  1. In the master branch, in the master/openpiv/docs/sphinx_docs a) echo "_build/" > .gitignore b) wrote simple Python script: http://bit.ly/ifRD9F

  2. in the gh-pages I added: touch .nojekyll

From that moment and on the workflow is simple:

 git clone git@github.com:alexlib/openpiv-python
 cd openpiv-python
 python setup.py build
 python setup.py install
 cd openpiv/dos/examples/example1
 python example1.py 

So there is only one, /master branch is visible and working and all the rest of git great stuff works very smoothly. branch, switch, merge, no problem. Only one guy who holds the gh-pages repository (e.g. myself) will commit the documentation from time to time to get the updated online documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment