使用sphinx-apidoc

时间:2019-01-08 19:59:42

标签: python python-sphinx documentation-generation sphinx-apidoc

我正在使用sphinx-apidoc为正在编写的程序生成文档。发生的情况是sphinx-apidoc在已建立的文档中显示类属性值。

例如,如果我在此代码上运行sphinx-apidoc

from os.path import dirname, abspath 

class Config:
    """This is the configuration class"""
    exec_path = dirname(abspath(__file__))

我在文档中得到exec_path = /home/myuser/path_to_config。我想省略或替换文档中对属性的评估。我该怎么办?

0 个答案:

没有答案