私はthis tutorialに直接続きました。宣言されたモジュールのドキュメントを生成していないスフィンクス
私のコードはN:/Tools/data/generic_accessor.py
にあります。機能なしのクラスのみがあるgeneric_accessorで
def access_hfri_returns(terms=[]):
"""
This accesses HFRI returns data.
Returns:
"""
:
そしてgeneric_accessor.py
は次のようなものが含まれています。
私が追加:N:\Tools\data\conf.py
へ
sys.path.insert(0,"N:\\Tools\\data")
を。
マイ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