當前位置: 首頁>>代碼示例>>Python>>正文


Python sphinx.__display_version__方法代碼示例

本文整理匯總了Python中sphinx.__display_version__方法的典型用法代碼示例。如果您正苦於以下問題:Python sphinx.__display_version__方法的具體用法?Python sphinx.__display_version__怎麽用?Python sphinx.__display_version__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在sphinx的用法示例。


在下文中一共展示了sphinx.__display_version__方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    # I need autodoc
    app.setup_extension('sphinx.ext.autodoc')
    app.add_node(autosummary_toc,
                 html=(autosummary_toc_visit_html, autosummary_noop),
                 latex=(autosummary_noop, autosummary_noop),
                 text=(autosummary_noop, autosummary_noop),
                 man=(autosummary_noop, autosummary_noop),
                 texinfo=(autosummary_noop, autosummary_noop))
    app.add_node(autosummary_table,
                 html=(autosummary_table_visit_html, autosummary_noop),
                 latex=(autosummary_noop, autosummary_noop),
                 text=(autosummary_noop, autosummary_noop),
                 man=(autosummary_noop, autosummary_noop),
                 texinfo=(autosummary_noop, autosummary_noop))
    app.add_directive('autosummary', Autosummary)
    app.add_role('autolink', autolink_role)
    app.connect('doctree-read', process_autosummary_toc)
    app.connect('builder-inited', process_generate_options)
    app.add_config_value('autosummary_generate', [], True)
    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:pyGSTio,項目名稱:pyGSTi,代碼行數:23,代碼來源:autosummary__init__.py

示例2: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    app.add_node(
        gallery,
        html=(visit_gallery_node, depart_gallery_node),
        latex=(visit_gallery_node, depart_gallery_node),
        text=(visit_gallery_node, depart_gallery_node),
        man=(visit_gallery_node, depart_gallery_node),
        texinfo=(visit_gallery_node, depart_gallery_node))
    app.add_directive('gallery', Gallery)
    app.add_directive('include_examples', IncludeExamples)
    app.connect('builder-inited', setup_env)
    app.connect('builder-inited', notebooks_to_rst)

    app.connect('doctree-read', extract_gallery_entries)
    app.connect('doctree-resolved', add_entries_to_gallery)

    return {'version': sphinx.__display_version__,
            'parallel_read_safe': True} 
開發者ID:has2k1,項目名稱:plotnine,代碼行數:20,代碼來源:examples_and_gallery.py

示例3: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    app.connect('autodoc-process-docstring', link_aliases)
    app.connect('autodocsumm-grouper', group_fmt_attributes)
    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:psyplot,項目名稱:psyplot,代碼行數:6,代碼來源:conf.py

示例4: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    # Placeholder to initialize the folder before
    # generating the documentation.
    app.add_role('keras2onnxversion', kerasonnx_version_role)
    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:onnx,項目名稱:keras-onnx,代碼行數:7,代碼來源:sphinx_keras2onnx_extension.py

示例5: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app: Sphinx) -> Dict[str, Any]:
    """Sphinx extension setup function.

    When the extension is loaded, Sphinx imports this module and executes
    the ``setup()`` function, which in turn notifies Sphinx of everything
    the extension offers.

    Parameters
    ----------
    app : sphinx.application.Sphinx
        Application object representing the Sphinx process

    See Also
    --------
    `The Sphinx documentation on Extensions
    <http://sphinx-doc.org/extensions.html>`_

    `The Extension Tutorial <http://sphinx-doc.org/extdev/tutorial.html>`_

    `The Extension API <http://sphinx-doc.org/extdev/appapi.html>`_

    """
    if not isinstance(app, Sphinx):
        # probably called by tests
        return {'version': __version__, 'parallel_read_safe': True}

    _patch_python_domain()

    app.setup_extension('autodoc') #change
    app.connect('autodoc-process-docstring', _process_docstring)
    app.connect('autodoc-skip-member', _skip_member)

    for name, (default, rebuild) in Config._config_values.items():
        app.add_config_value(name, default, rebuild)
    return {'version': __version__, 'parallel_read_safe': True} 
開發者ID:thu-coai,項目名稱:cotk,代碼行數:37,代碼來源:__init__.py

示例6: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app: Sphinx) -> Dict[str, Any]:
    app.add_autodocumenter(ModuleDocumenter)
    app.add_autodocumenter(ClassDocumenter)
    app.add_autodocumenter(ExceptionDocumenter)
    app.add_autodocumenter(DataDocumenter)
    app.add_autodocumenter(DataDeclarationDocumenter)
    app.add_autodocumenter(FunctionDocumenter)
    app.add_autodocumenter(DecoratorDocumenter)
    app.add_autodocumenter(MethodDocumenter)
    app.add_autodocumenter(AttributeDocumenter)
    app.add_autodocumenter(PropertyDocumenter)
    app.add_autodocumenter(InstanceAttributeDocumenter)
    app.add_autodocumenter(SlotsAttributeDocumenter)

    app.add_config_value('autoclass_content', 'class', True)
    app.add_config_value('autodoc_member_order', 'alphabetic', True)
    app.add_config_value('autodoc_default_flags', [], True)
    app.add_config_value('autodoc_default_options', {}, True)
    app.add_config_value('autodoc_docstring_signature', True, True)
    app.add_config_value('autodoc_mock_imports', [], True)
    app.add_config_value('autodoc_typehints', "signature", True, ENUM("signature", "none"))
    app.add_config_value('autodoc_warningiserror', True, True)
    app.add_config_value('autodoc_inherit_docstrings', True, True)
    app.add_event('autodoc-before-process-signature')
    app.add_event('autodoc-process-docstring')
    app.add_event('autodoc-process-signature')
    app.add_event('autodoc-skip-member')

    app.connect('config-inited', merge_autodoc_default_flags)
    app.setup_extension('autodoc.type_comment')

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:thu-coai,項目名稱:cotk,代碼行數:34,代碼來源:__init__.py

示例7: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app: Sphinx) -> Dict[str, Any]:
    app.connect('autodoc-before-process-signature', update_annotations_using_type_comments)

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:thu-coai,項目名稱:cotk,代碼行數:6,代碼來源:type_comment.py

示例8: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    """add custom directive into Sphinx so that it is found during document parsing"""
    app.add_directive('embed-options', EmbedOptionsDirective)

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:mdolab,項目名稱:openconcept,代碼行數:7,代碼來源:embed_options.py

示例9: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    """add custom directive into Sphinx so that it is found during document parsing"""
    app.add_directive('embed-shell-cmd', EmbedShellCmdDirective)
    app.add_node(failed_node, html=(visit_failed_node, depart_failed_node))
    app.add_node(cmd_node, html=(visit_cmd_node, depart_cmd_node))

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:mdolab,項目名稱:openconcept,代碼行數:9,代碼來源:embed_shell_cmd.py

示例10: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    """add custom directive into Sphinx so that it is found during document parsing"""
    app.add_directive('embed-code', EmbedCodeDirective)
    node_setup(app)

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:mdolab,項目名稱:openconcept,代碼行數:8,代碼來源:embed_code.py

示例11: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    """add custom directive into Sphinx so that it is found during document parsing"""
    app.add_directive('embed-bibtex', EmbedBibtexDirective)
    app.add_node(bibtex_node, html=(visit_bibtex_node, depart_bibtex_node))

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:mdolab,項目名稱:openconcept,代碼行數:8,代碼來源:embed_bibtex.py

示例12: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    """add custom directive into Sphinx so that it is found during document parsing"""
    app.add_directive('content-container',  ContentContainerDirective)
    app.add_directive('embed-compare', EmbedCompareDirective)

    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:mdolab,項目名稱:openconcept,代碼行數:8,代碼來源:embed_compare.py

示例13: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    """Setup `dsp` Sphinx extension module. """
    app.setup_extension('sphinx.ext.graphviz')  # To set all defaults.
    app.add_node(
        dsp,
        html=(html_visit_dispatcher, None),
        latex=(latex_visit_graphviz, None),
        texinfo=(texinfo_visit_graphviz, None),
        text=(text_visit_graphviz, None),
        man=(man_visit_graphviz, None)
    )
    app.add_directive('dsp', DispatcherSphinxDirective)
    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:vinci1it2000,項目名稱:schedula,代碼行數:15,代碼來源:graphviz.py

示例14: setup

# 需要導入模塊: import sphinx [as 別名]
# 或者: from sphinx import __display_version__ [as 別名]
def setup(app):
    # Placeholder to initialize the folder before
    # generating the documentation.
    app.add_role('skl2onnxversion', skl2onnx_version_role)
    app.add_directive('supported-skl2onnx', SupportedSkl2OnnxDirective)
    app.add_directive('supported-onnx-ops', SupportedOnnxOpsDirective)
    app.add_directive('supported-sklearn-ops', SupportedSklearnOpsDirective)
    app.add_directive('covered-sklearn-ops', AllSklearnOpsDirective)
    return {'version': sphinx.__display_version__, 'parallel_read_safe': True} 
開發者ID:onnx,項目名稱:sklearn-onnx,代碼行數:11,代碼來源:sphinx_skl2onnx_extension.py


注:本文中的sphinx.__display_version__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。