Is there a way, ideally using autodoc, to get sphinx to document a Python script? The section of the script I want documented is the portion protected by:
autodoc
You should extract the code in that block into a function, with a docstring, and call that function from the block.