今すぐ私のドキュメント/ソースは、にdoctreeがapi.rst
という別のファイルをインポートするindex.rst
を持っています。私はこのapi.rst
ファイルをpythonモジュールをautodocしたいと思います。このモジュールは、どのクラスにも付属していない多くの関数を持つ.pyですが、その機能によってグループ化されています。それはこれらのグループを考慮せずに、すべての機能をautodocのだろうしかしReadthedocs:1つのファイルで同じモデル関数を別々にオートドックする方法はありますか?
fbbotw api
==========
.. automodule:: fbbotw
:members:
:私はこのようなAPIファイルを書くことができます。今、私はこのような.. autofunction::
ディレクティブを使用していることをやろうとしている:それはローカルで動作しますが、オンラインreadthedocsだけapi.rst
のタイトルを作成しますが、
fbbotw Functions reference
==========================
Graph API Functions
-------------------
.. autofunction:: fbbotw.get_user_information
Send Api Functions
------------------
Sender Actions
~~~~~~~~~~~~~~
.. autofunction:: fbbotw.typing
Content Types
~~~~~~~~~~~~~
.. autofunction:: fbbotw.post_text_message
.. autofunction:: fbbotw.post_audio_attachment
.. autofunction:: fbbotw.post_file_attachment
.. autofunction:: fbbotw.post_image_attachment
.. autofunction:: fbbotw.post_video_attachment
Quick Replies
~~~~~~~~~~~~~
.. autofunction:: fbbotw.post_text_w_quickreplies
Templates
~~~~~~~~~
.. autofunction:: fbbotw.post_button_template
.. autofunction:: fbbotw.post_generic_template
.. autofunction:: fbbotw.post_list_template
.. autofunction:: fbbotw.post_receipt_template
Buttons
~~~~~~~
.. autofunction:: fbbotw.post_call_button
Thread Settings Functions
-------------------------
.. autofunction:: fbbotw.post_settings
.. autofunction:: fbbotw.post_greeting_text
.. autofunction:: fbbotw.post_start_button
.. autofunction:: fbbotw.post_persistent_menu
.. autofunction:: fbbotw.post_domain_whitelisting
.. autofunction:: fbbotw.post_account_linking_url
.. autofunction::
は何もしません。それを行うための別の方法はありますか、あるいは構成を見落としていますか?私が試してみました
他のもの:グループごとに
api.rst
では、別のファイルを作成し、それをtoctreeインポートして、これらのグループ内のファイルは、私は、そのファイルにautodocのしたいメンバーを指定.. automodule: fbbotw :members: function1, function2...
を使用しています。
私は実際にはreadthedocsの管理者には悪い設定かもしれないと思います。すべてがローカルでうまく動作するので、オンラインで動作させることはできません。
あなたは[sphinx-apidoc](https://codeandchaos.wordpress.com/2012/07/30/sphinx-autodoc-tutorial-for-dummies/)(ページのbutt)を使ってみましたか?自動文書 – Tobey
読書室ではオートイエッテは全く機能しますか? –
@トビーほとんどのチュートリアルはreadthedocsのものと同じですので、これは私が行ったのと同じです。 –