I want to put my function definitions and docs to functions in one Python file. So my Python script contains comments in reST syntax. How can I generate a reST file from comments in the Python script?
But I just do not want to rewrite the reST code. I want to find an automated way to extract it from my Python script.
My function looks like this:
"""add two numbers.
a + b
return a + b