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:
cd $HOME/src/valkey-glide/pythonsource .env/bin/activatepip3 install -r dev_requirements.txtcd docssphinx-apidoc -o . ../python/glidemake cleanmake html # or run make help to see a list of available optionsIn 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.