在 sphinx 配置中添加代码路径

Autodoc 需要导入你的模块才能工作。

你可以在 conf.py 文件中包含代码路径。

例如:

import os
sys.path.insert(0, os.path.abspath('../src'))