Python sphinx.__display_version__() Examples
The following are 14
code examples of sphinx.__display_version__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sphinx
, or try the search function
.
Example #1
Source File: autosummary__init__.py From pyGSTi with Apache License 2.0 | 6 votes |
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}
Example #2
Source File: examples_and_gallery.py From plotnine with GNU General Public License v2.0 | 6 votes |
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}
Example #3
Source File: conf.py From psyplot with GNU General Public License v2.0 | 5 votes |
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}
Example #4
Source File: sphinx_keras2onnx_extension.py From keras-onnx with MIT License | 5 votes |
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}
Example #5
Source File: __init__.py From cotk with Apache License 2.0 | 5 votes |
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}
Example #6
Source File: __init__.py From cotk with Apache License 2.0 | 5 votes |
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}
Example #7
Source File: type_comment.py From cotk with Apache License 2.0 | 5 votes |
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}
Example #8
Source File: embed_options.py From openconcept with MIT License | 5 votes |
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}
Example #9
Source File: embed_shell_cmd.py From openconcept with MIT License | 5 votes |
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}
Example #10
Source File: embed_code.py From openconcept with MIT License | 5 votes |
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}
Example #11
Source File: embed_bibtex.py From openconcept with MIT License | 5 votes |
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}
Example #12
Source File: embed_compare.py From openconcept with MIT License | 5 votes |
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}
Example #13
Source File: graphviz.py From schedula with European Union Public License 1.1 | 5 votes |
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}
Example #14
Source File: sphinx_skl2onnx_extension.py From sklearn-onnx with MIT License | 5 votes |
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}