.. _f-sphinxcmdrefextension: module ``sphinxext.sphinx_cmdref_extension`` ============================================ .. inheritance-diagram:: pyquickhelper.sphinxext.sphinx_cmdref_extension Short summary +++++++++++++ module ``pyquickhelper.sphinxext.sphinx_cmdref_extension`` Defines a :epkg:`sphinx` extension to keep track of *cmd*. :githublink:`%|py|6` Classes +++++++ +------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +====================================================================================+=========================================================================================================================+ | :class:`CmdRef ` | A ``cmdref`` entry, displayed in the form of an admonition. It is used to reference a script a module is added as a ... | +------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :class:`cmdref_node ` | defines ``cmdref`` node | +------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :class:`CmdRefList ` | A list of all *cmdref* entries, for a specific tag. | +------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :class:`cmdreflist ` | defines ``cmdreflist`` node | +------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ Functions +++++++++ +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +=========================================================================================================+====================================================================================================================================+ | :func:`depart_cmdref_node ` | *depart_cmdref_node*, see `sphinx/writers/html.py `_. ... | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`depart_cmdreflist_node ` | *depart_cmdref_node* | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`merge_cmdref ` | merge_cmdref | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`process_cmdref_nodes ` | process_cmdref_nodes | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`process_cmdrefs ` | Collect all cmdrefs in the environment this is not done in the directive itself because it some transformations ... | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`purge_cmdrefs ` | purge_cmdrefs | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`setup ` | setup for ``cmdref`` (sphinx) | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`visit_cmdref_node ` | visit_cmdref_node | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`visit_cmdreflist_node ` | visit_cmdreflist_node see `sphinx/writers/html.py `_. ... | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +-----------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | property | truncated documentation | +=========================================================================================+===================================================================+ | :meth:`document ` | Return the `document` root node of the tree containing this Node. | +-----------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`document ` | Return the `document` root node of the tree containing this Node. | +-----------------------------------------------------------------------------------------+-------------------------------------------------------------------+ Methods +++++++ +------------------------------------------------------------------------------+------------------------------------------------------------------------+ | method | truncated documentation | +==============================================================================+========================================================================+ | :meth:`run ` | calls run from :class:`BlocRef` and add index entries by default | +------------------------------------------------------------------------------+------------------------------------------------------------------------+ | :meth:`run ` | calls run from :class:`BlocRefList` and add default tag if not present | +------------------------------------------------------------------------------+------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyquickhelper.sphinxext.sphinx_cmdref_extension :members: :special-members: __init__ :show-inheritance: