.. my_package documentation master file, created by sphinx-quickstart on Tue Mar 22 13:13:41 2022. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to my_package's documentation! ====================================== .. toctree:: :maxdepth: 2 :caption: Contents: Here is where you can write the documentation for your package. Usage ===== .. _installation: Installation ------------ To use `my_package` you need to install X, Y and Z. .. _code: Code ---- Here is an example of describing the use of your function. To add one to a number you can use the ``my_package.add_one()`` function: .. py:function:: my_package.add_one(number) :param number: Should be integer, floating point number or a string. If ``number`` is not one of these types, an exception will be raised: .. py:exception:: TypeError Raised if the input is invalid. More about how to describe code can be hound `here `_ .. The following section creates an index, a list of modules and a search page. Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` .. The following will add the signature of the individual functions and pull their docstrings. .. automodapi:: my_package.example