Skip to content

Documentation

We follow the Google Style Python Docstrings format in our documentation. For our documentation tool, we use sphinx.

To run sphinx, execute the following:

Terminal window
cd $HOME/src/valkey-glide/python
source .env/bin/activate
pip3 install -r dev_requirements.txt
cd docs
sphinx-apidoc -o . ../python/glide
make clean
make html # or run make help to see a list of available options

In docs/_build you will find the index.html page. Open this file in your browser and you should see all the documented functions.

However, some stylings may not be implemented by this Google format. In such cases, we revert back to the default style that sphinx uses: reStructuredText. An example of this is shown for hyperlinks below.