【发布时间】:2018-02-18 07:25:55
【问题描述】:
所以我正在为我的库编写 PHP 文档。 我正在使用“sphinxcontrib.phpdomain”扩展来支持 PHP 域。
假设我定义了以下文档:
.. toctree::
:numbered:
:maxdepth: 3
:caption: Couch
.. php:class:: Couch
This is the low-level class that handles communications with CouchDB.
.. php:method:: dsn()
:returns: The dsn of the current Couch instance
是否可以由此生成 TOC 树?例如,我想在树中索引类名和类成员。
目前,只有自定义标题在目录树中编入索引
【问题讨论】:
标签: php python-sphinx restructuredtext documentation-generation toctree