首页 文章
  • 1 votes
     answers
     views

    Sphinx autodoc在第三方软件包的ImportError上死亡

    有没有办法排除模块的导入部分,然后用sphinx-python记录它?我有一个模块导入另一个包(其他不同的项目),然后sphinx给出了这个错误: “”“”文件“/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.3-py2.7.egg/sphinx/ext/autodoc.py”,第321行,在import_object导入中(self .mod...
  • 0 votes
     answers
     views

    Sphinx autodoc无法导入/查找模块

    我是狮身人面像的新手 . 我从一开始就得到了一些东西 . 我的文件结构非常简单: conf.py index.rst p1.rst P1(资料) m1.py(p1中的文件) m2.py(p1中的文件)...... 在p1.rst写道: .. automodule:: p1.m1 :members: 我在conf.py中添加了抽象路径 sys.path.append(os.path.abs...
  • 2 votes
     answers
     views

    Sphinx-如何在多个文件夹中的autodoc .py文件?

    我是Python和Sphinx的新手,我正在尝试autodoc位于类似于以下结构的目录中的python文件: Project ├── Sphinx | ├── index.rst | ├── autodoc.rst | └── conf.py ├── Scripts | ├── file1.py | └── file2.py | ├── folder | | └...

热门问题