myautodoc#

Extract docstrings from *.py files and write them in *.rst files in docs/source folder. The names are kept consistent with the *.py files.

Syntax

python myautodoc.py

Edit

  • Nov 15, 2022 – Initial commit.

  • Feb 08, 2023 – Rewrite in function wrapper form, to make autodoc work properly. (autodoc import the script and execute it, so anything outside if __name__=="__main__" will be executed, causing problems)

  • Feb 09, 2023 – Repurpose this script to write “scripts.rst” file, which use autosummary to document all the scripts.