本文整理匯總了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.