.. _f-sphinxblogextension: module ``sphinxext.sphinx_blog_extension`` ========================================== .. inheritance-diagram:: pyquickhelper.sphinxext.sphinx_blog_extension Short summary +++++++++++++ module ``pyquickhelper.sphinxext.sphinx_blog_extension`` Defines blogpost directives. See `Tutorial: Writing a simple extension `_, `Creating reStructuredText Directives `_ :githublink:`%|py|10` Classes +++++++ +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | class | truncated documentation | +======================================================================================================+====================================================================+ | :class:`blogpost_node ` | Defines *blogpost* node. | +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :class:`blogpostagg_node ` | Defines *blogpostagg* node. | +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :class:`BlogPostDirective ` | Extracts information about a blog post described by a directive `` | +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :class:`BlogPostDirectiveAgg ` | same but for the same post in a aggregated pages | +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :class:`blogpostlist_node ` | defines *blogpostlist* node, unused, kept as example | +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :class:`BlogPostListDirective ` | unused, kept as example | +------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ Functions +++++++++ +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +===================================================================================================================+=======================================================================================================================+ | :func:`depart_blogpost_node ` | what to do when leaving a node blogpost the function should have different behaviour, depending on the format, or ... | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`depart_blogpostagg_node ` | what to do when leaving a node blogpost, the function should have different behaviour, depending on the format, ... | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`depart_blogpostagg_node_html ` | what to do when leaving a node blogpost, the function should have different behaviour, depending on the format, ... | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`process_blogpost_nodes ` | unused, kept as example | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`purge_blogpost ` | unused, kept as example | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`setup ` | setup for ``blogpost`` (sphinx) | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`visit_blogpost_node ` | what to do when visiting a node blogpost the function should have different behaviour, depending on the format, ... | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`visit_blogpostagg_node ` | what to do when visiting a node blogpost the function should have different behaviour, depending on the format, ... | +-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ 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. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`document ` | Return the `document` root node of the tree containing this Node. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ Methods +++++++ +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | method | truncated documentation | +========================================================================================================+=========================================================================================+ | :meth:`fill_node ` | Fills the content of the node. | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`fill_node ` | Fill the node of an aggregated page. | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`run ` | extracts the information in a dictionary and displays it if the environment is not null | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`run ` | extracts the information in a dictionary and displays it if the environment is not null | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`run ` | | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`suffix_label ` | returns a suffix to add to a label, it should not be empty for aggregated pages | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :meth:`suffix_label ` | returns a suffix to add to a label, it should not be empty for aggregated pages | +--------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyquickhelper.sphinxext.sphinx_blog_extension :members: :special-members: __init__ :show-inheritance: