Closed sbellem closed 6 years ago
Let's defer this question of where to put it till resolving other issues, especially #20. For now, while the code is in transition into a complete library, I'm most concerned about coming up with a process that leads to good documentation following the code.
This issue was moved to initc3/HoneyBadgerBFT-Python#30
Publishing on Read the Docs
It is very common for open source Python projects to host their documentation on Read the Docs.
It is usually relatively simple to set up.
There are some limitations however in terms of what can be installed beyond Python packages specified in a
requirements.txt
file, and runningpython setup.py install
. This means that for libraries that require installing C header files for instance, it does not seem to be possible to instruct Read the Docs to perform those required installations. In other words, it does not seem to be possible to instruct Read the Docs to execute:Since the above instructions are required before running
python setup.py install
to installhoneybadgerbft
, and installinghoneybadgerbft
is required in order to build documentation from the the docstrings, it is then not simple to set up the docs on Read the Docs.Perhaps there are workarounds, such as indicated here, but this means it will take slightly longer to set up.
Publishing on Github Pages
Another approach would be to publish the docs on Github Pages. For a concrete example, one may look at the asyncpg project's travis-publish-docs.sh script.