""" Code snippet card, used in index page. """ from docutils.parsers.rst import Directive, directives from docutils.statemachine import StringList from docutils import nodes from sphinx.addnodes import pending_xref CARD_TEMPLATE_HEADER = """ .. raw:: html
.. image:: {icon} .. raw:: html

{title}

""" CARD_TEMPLATE_FOOTER = """ .. raw:: html
""" CARD_TEMPLATE_LINK_CONTAINER_HEADER = """ .. raw:: html