在 sphinx 配置中新增程式碼路徑

Autodoc 需要匯入你的模組才能工作。

你可以在 conf.py 檔案中包含程式碼路徑。

例如:

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