This separate repository can be become http://github.com/openptv/docs. Such repository including the gh-pages branch would automatically allow us to create
using Sphinx http://sphinx-doc.org/index.html
For the prototype, check http://alexlib.github.io/docs
The source files are simple ASCII files that one can edit offline or online using Github editor. The source files are in the software repository, i.e. http://github.com/alexlib/openptv-python for example.
Therefore, in order to add a new page or a new documentation fix, one could fork the directory, add a page of fixs something and send pull request or a patch by mail.
- What else do we get from Sphinx - automatic rendering our comments and docstrings from Python.
- How do we link C code references: we generate those using Doxygen and then link manually by copying into the docs/ folder
- install Sphinx
- clone two repositories:
openptv-pythonfrom http://github.com/alexlib/openptv-pythondocsfrom http://github.com/alexlib/docs
-
in the
openptv-pythonfolder, edit the reST files inopenptv-python/docs/source/subfolder$$ edit source/index.rst -
in
openptv-python/docssubfolder run$$ make html -
copy everything into the separate repository copy of the
docs(check that it's under git branchgh-pages)$$ cd /Users/alex/docs $$ git checkout gh-pages $$ cp -rf /Users/alex/openptv-python/docs/build/html/* . $$ git add . $$ git commit -m "new html" $$ git push origin gh-pages