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

安裝 autodoc 擴充套件

Created: November-22, 2018

在文件根目錄的 conf.py 檔案中的 extensions list 中新增 autodoc 模組:

extensions = [
    'sphinx.ext.autodoc',
     ...
]
  • 在 sphinx 配置中新增程式碼路徑
  • 使用 autodoc 編寫文件字串

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明