用sphinx自動生成文件 - jenhaoyang/backend_blog GitHub Wiki

extensions = ['sphinx.ext.napoleon',
            'sphinx.ext.autodoc'
]

sphinx-apidoc -f -o doc_dir module_dir

參考:
https://betterprogramming.pub/auto-documenting-a-python-project-using-sphinx-8878f9ddc6e9