logo
  • 教程列表
  • SO官方文檔
  • 使用 autodoc 編寫文件字串
    • 安裝 autodoc 擴充套件
    • 在 sphinx 配置中新增程式碼路徑
  1. StackOverflow 文件
  2. python-sphinx 教程
  3. 使用 autodoc 編寫文件字串
  4. 在 sphinx 配置中新增程式碼路徑

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

Created: November-22, 2018

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

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

例如:

import os
sys.path.insert(0, os.path.abspath('../src'))
  • 安裝 autodoc 擴充套件

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明