나는 this tutorial을 직접 추적했습니다.선언 된 모듈에 대한 문서를 생성하지 않는 스핑크스
내 코드는 N:/Tools/data/generic_accessor.py
에 있습니다.
def access_hfri_returns(terms=[]):
"""
This accesses HFRI returns data.
Returns:
"""
에서 generic_accessor 기능 만없고 클래스가 있습니다 :
그리고 generic_accessor.py
물건 등이 포함되어 있습니다.
sys.path.insert(0,"N:\\Tools\\data")
을 N:\Tools\data\conf.py
에.
내 N:\Tools\data\index.rst
읽기 :
.. data documentation master file, created by
sphinx-quickstart on Fri Feb 24 11:52:57 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to data's documentation!
================================
Contents:
.. toctree::
:maxdepth: 2
.. automodule:: generic_accessor
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search
가 아직 make html
을 reran 내 N:\Tools\data\_build\html\index.html
은 다음과 같습니다
난 아무데도 generic_accessor
에 대한 문서를 볼 수 없습니다.
안내해 주셔서 감사합니다.
당신은'conf.py'에서'extensions' 목록에' "sphinx.ext.autodoc을"'추가 했습니까? – jwodder