aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/mgext/youcanhelp.py
diff options
context:
space:
mode:
authorWill Kahn-Greene <willg@bluesock.org>2012-02-09 10:23:03 -0500
committerWill Kahn-Greene <willg@bluesock.org>2012-02-09 10:24:29 -0500
commit1da5052ff7b415efa6e523ed21a6a0a98c391432 (patch)
tree894e9fbb2842b3cb4fa7822a8dc003f2f09ce6a7 /docs/source/mgext/youcanhelp.py
parentdf900eed1718d9bb83c3289f00fdb539fa9b5063 (diff)
downloadmediagoblin-1da5052ff7b415efa6e523ed21a6a0a98c391432.tar.lz
mediagoblin-1da5052ff7b415efa6e523ed21a6a0a98c391432.tar.xz
mediagoblin-1da5052ff7b415efa6e523ed21a6a0a98c391432.zip
Removing youcanhelp stuff
This was never used. It doesn't support Texinfo files. It was only half completed. Best to remove it.
Diffstat (limited to 'docs/source/mgext/youcanhelp.py')
-rw-r--r--docs/source/mgext/youcanhelp.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/docs/source/mgext/youcanhelp.py b/docs/source/mgext/youcanhelp.py
deleted file mode 100644
index a99d0e4d..00000000
--- a/docs/source/mgext/youcanhelp.py
+++ /dev/null
@@ -1,44 +0,0 @@
-from docutils import nodes
-
-from sphinx.util.compat import Directive, make_admonition
-
-class youcanhelp_node(nodes.Admonition, nodes.Element):
- pass
-
-class YouCanHelp(Directive):
- has_content = True
- required_arguments = 0
- optional_arguments = 0
- final_argument_whitespace = False
- option_spec = {}
-
- def run(self):
- ad = make_admonition(
- youcanhelp_node,
- self.name,
- ["You Can Help!"],
- self.options,
- self.content,
- self.lineno,
- self.content_offset,
- self.block_text,
- self.state,
- self.state_machine)
- ad[0].line = self.lineno
- return ad
-
-def visit_youcanhelp_node(self, node):
- self.visit_admonition(node)
-
-def depart_youcanhelp_node(self, node):
- self.depart_admonition(node)
-
-def setup(app):
- app.add_node(
- youcanhelp_node,
- html=(visit_youcanhelp_node, depart_youcanhelp_node),
- latex=(visit_youcanhelp_node, depart_youcanhelp_node),
- text=(visit_youcanhelp_node, depart_youcanhelp_node)
- )
-
- app.add_directive('youcanhelp', YouCanHelp)