I have figured out that you can have examples in the docstring, by adding a line.
.. plot:: examples/numerical_bin_data.py
:include-source:
This is a very nice way to create good documentation. However, it requires to run a script which creates a figure. I decided to put the script in the /examples/ folder. I put /examples/ into docs/source/examples/. However, It would be nice to have examples in the home directory. It will be easier to find and easier to refer to. Is there a way to put /examples/ in the home directory and refer to them from files down the tree?
Here is the link to documentation generated with a plot build in.
I have figured out that you can have examples in the docstring, by adding a line.
This is a very nice way to create good documentation. However, it requires to run a script which creates a figure. I decided to put the script in the /examples/ folder. I put /examples/ into docs/source/examples/. However, It would be nice to have examples in the home directory. It will be easier to find and easier to refer to. Is there a way to put /examples/ in the home directory and refer to them from files down the tree?
Here is the link to documentation generated with a plot build in.