AutomodapiOptionsο
- class plasmapy_sphinx.autodoc.automodapi.AutomodapiOptions(app: Sphinx, modname: str, options: Dict[str, Any], docname: str = None, _warn: Callable = None)ο
Bases:
AutomodsummOptionsClass for advanced conditioning and manipulation of option arguments of
plasmapy_sphinx.autodoc.automodapi.ModAPIDocumenter.- Parameters:
app (
Sphinx) β Instance of the sphinx application.modname (
str) β Name of the module given in theautomodsummdirective. This is the module to be inspected and have its objects grouped.options (Dict[str, Any]) β Dictionary of options given for the
automodsummdirective declaration.docname (str) β Name of the document/file where the
automodsummdirection was declared.
Attributes Summary
Instance of the sphinx application.
Dictionary of the custom group info.
Dictionary of the default group information.
Name of the document where
automodsummwas declared.The combined grouping info of
default_grouping_infoandcustom_grouping_infoSet of all the grouping names.
Instance of the
SphinxLoggerAdapterfor report during builds.Dictionary of the grouped objects found in the module named by
modname.A filtered version of
mod_objsaccording to the specifications given inoptions(i.e. those given toautomodsumm).Name of the module given to
automodsumm.Mapping of option names to validator functions.
Copy of the options given to
automodsumm.A dictionary of options suitable for
automodsummbased on the options given toautomodapi, and excluding the group options.Is module specified by
modnamea package or module (i.e.pyfile).Instance of a
sphinx.util.logging.SphinxLoggerAdapter.warningfor reporting warning level messages during a build.Methods Summary
Additional conditioning of the grouping options.
Additional conditioning of the
:heading-chars:option.Additional conditioning of the
:include-heading:option.Additional conditioning of the
:inheritance-diagram:option.Method for doing any additional conditioning of option arguments.
Additional conditioning of the
:toctree:option.generate_obj_list([exclude_modules])Take
mod_objs_option_filteredand generated a list of the fully qualified object names.Attributes Documentation
- appο
Instance of the sphinx application.
- custom_grouping_infoο
Dictionary of the custom group info.
- default_grouping_infoο
Dictionary of the default group information.
- docnameο
Name of the document where
automodsummwas declared.
- grouping_infoο
The combined grouping info of
default_grouping_infoandcustom_grouping_info
- groupingsο
Set of all the grouping names.
- logger = <SphinxLoggerAdapter sphinx.plasmapy_sphinx.autodoc.automodapi (DEBUG)>ο
Instance of the
SphinxLoggerAdapterfor report during builds.
- mod_objs_option_filteredο
A filtered version of
mod_objsaccording to the specifications given inoptions(i.e. those given toautomodsumm).
- modnameο
Name of the module given to
automodsumm.
- option_spec = {'deprecated': <function bool_option>, 'exclude-groups': <function option_str_list>, 'groups': <function option_str_list>, 'heading-chars': <function unchanged>, 'include-heading': <function bool_option>, 'inheritance-diagram': <function bool_option>, 'no-groups': <function bool_option>, 'no-index': <function bool_option>, 'no-inheritance-diagram': <function bool_option>, 'no-main-docstring': <function bool_option>, 'no-toctree': <function bool_option>, 'no-value': <function bool_option>, 'noindex': <function bool_option>, 'platform': <function identity>, 'show-inheritance': <function bool_option>, 'skip': <function option_str_list>, 'synopsis': <function identity>, 'toctree': <function unchanged>}ο
Mapping of option names to validator functions. (see
docutils.parsers.rst.Directive.option_spec)
- optionsο
Copy of the options given to
automodsumm.
- options_for_automodsummο
A dictionary of options suitable for
automodsummbased on the options given toautomodapi, and excluding the group options.
- pkg_or_moduleο
Is module specified by
modnamea package or module (i.e.pyfile). Return"pkg"for a package and"module"for apyfile.
- warnο
Instance of a
sphinx.util.logging.SphinxLoggerAdapter.warningfor reporting warning level messages during a build.
Methods Documentation
- condition_group_options()ο
Additional conditioning of the grouping options. (See options
automodapi:groups,automodapi:exclude-groups, andautomodapi:no-groupsfor additional details.)
- condition_heading_chars_option()ο
Additional conditioning of the
:heading-chars:option. (See optionautomodapi:heading-charsfor additional details.)
- condition_include_heading_option()ο
Additional conditioning of the
:include-heading:option. (See optionautomodapi:include-headingfor additional details.)
- condition_inheritance_diagram_option()ο
Additional conditioning of the
:inheritance-diagram:option. (See optionsautomodapi:inheritance-diagramandautomodapi:no-inheritance-diagramfor additional details.)
- condition_options()ο
Method for doing any additional conditioning of option arguments. Called during class instantiation.
- condition_toctree_option()ο
Additional conditioning of the
:toctree:option. (See optionsautomodapi:toctreeandautomodapi:no-toctreefor additional details.)
- generate_obj_list(exclude_modules: bool = False) List[str]ο
Take
mod_objs_option_filteredand generated a list of the fully qualified object names. The list is sorted based on the casefolded short names of the objects.