1 from docutils
import nodes
3 from sphinx
.util
.compat
import Directive
, make_admonition
5 class youcanhelp_node(nodes
.Admonition
, nodes
.Element
):
8 class YouCanHelp(Directive
):
10 required_arguments
= 0
11 optional_arguments
= 0
12 final_argument_whitespace
= False
27 ad
[0].line
= self
.lineno
30 def visit_youcanhelp_node(self
, node
):
31 self
.visit_admonition(node
)
33 def depart_youcanhelp_node(self
, node
):
34 self
.depart_admonition(node
)
39 html
=(visit_youcanhelp_node
, depart_youcanhelp_node
),
40 latex
=(visit_youcanhelp_node
, depart_youcanhelp_node
),
41 text
=(visit_youcanhelp_node
, depart_youcanhelp_node
)
44 app
.add_directive('youcanhelp', YouCanHelp
)