本文整理汇总了Python中sphinx.ext.autodoc方法的典型用法代码示例。如果您正苦于以下问题:Python ext.autodoc方法的具体用法?Python ext.autodoc怎么用?Python ext.autodoc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sphinx.ext
的用法示例。
在下文中一共展示了ext.autodoc方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup
# 需要导入模块: from sphinx import ext [as 别名]
# 或者: from sphinx.ext import autodoc [as 别名]
def setup(app):
app.connect('autodoc-skip-member', dont_skip_any_doctests)
示例2: setup
# 需要导入模块: from sphinx import ext [as 别名]
# 或者: from sphinx.ext import autodoc [as 别名]
def setup(app):
app.connect('autodoc-skip-member', autodoc_skip_attribute)
#app.connect('autodoc-process-docstring', require_upgraded_driver_docstring)
return None
示例3: initialize
# 需要导入模块: from sphinx import ext [as 别名]
# 或者: from sphinx.ext import autodoc [as 别名]
def initialize(app):
try:
app.connect('autodoc-process-signature', mangle_signature)
except:
monkeypatch_sphinx_ext_autodoc()
示例4: setup
# 需要导入模块: from sphinx import ext [as 别名]
# 或者: from sphinx.ext import autodoc [as 别名]
def setup(app, get_doc_object_=get_doc_object):
global get_doc_object
get_doc_object = get_doc_object_
app.connect('autodoc-process-docstring', mangle_docstrings)
app.connect('builder-inited', initialize)
app.add_config_value('numpydoc_edit_link', None, True)
#------------------------------------------------------------------------------
# Monkeypatch sphinx.ext.autodoc to accept argspecless autodocs (Sphinx < 0.5)
#------------------------------------------------------------------------------
示例5: monkeypatch_sphinx_ext_autodoc
# 需要导入模块: from sphinx import ext [as 别名]
# 或者: from sphinx.ext import autodoc [as 别名]
def monkeypatch_sphinx_ext_autodoc():
global _original_format_signature
import sphinx.ext.autodoc
if sphinx.ext.autodoc.format_signature is our_format_signature:
return
print "[numpydoc] Monkeypatching sphinx.ext.autodoc ..."
_original_format_signature = sphinx.ext.autodoc.format_signature
sphinx.ext.autodoc.format_signature = our_format_signature
示例6: setup
# 需要导入模块: from sphinx import ext [as 别名]
# 或者: from sphinx.ext import autodoc [as 别名]
def setup(app):
app.connect('autodoc-process-docstring', sphinx.ext.autodoc.between('Credits:', what=['module'], exclude=True))
# -- Options for Epub output ----------------------------------------------
# Bibliographic Dublin Core info.