Removing youcanhelp stuff
authorWill Kahn-Greene <willg@bluesock.org>
Thu, 9 Feb 2012 15:23:03 +0000 (10:23 -0500)
committerWill Kahn-Greene <willg@bluesock.org>
Thu, 9 Feb 2012 15:24:29 +0000 (10:24 -0500)
This was never used. It doesn't support Texinfo files. It was only half
completed. Best to remove it.

devtools/maketarball.sh
docs/source/conf.py
docs/source/mgext/__init__.py [deleted file]
docs/source/mgext/youcanhelp.py [deleted file]

index 5a25faeaf4ff479df423407afceabc6bef504e43..7d88c6fd09a6406b209b5cd336fc7e7389905bcd 100755 (executable)
@@ -154,13 +154,11 @@ then
         mv docs/build/texinfo/ docs/texinfo/
 
         rm -rf docs/build/
-        rm -rf docs/source/mgext/*.pyc
     else
         # this is the old directory structure pre-0.0.4
         mv docs/_build/html/ docs/html/
 
         rm -rf docs/_build/
-        rm -rf docs/mgext/*.pyc
     fi
 
     popd
index 3014e592c62532ecdc0c51ebef117d0650827146..16fd22a943bf140c08963dcf29561b37987b1139 100644 (file)
@@ -25,7 +25,7 @@ sys.path.insert(0, os.path.abspath('.'))
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ["mgext.youcanhelp"]
+extensions = []
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['source/_templates']
diff --git a/docs/source/mgext/__init__.py b/docs/source/mgext/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/docs/source/mgext/youcanhelp.py b/docs/source/mgext/youcanhelp.py
deleted file mode 100644 (file)
index a99d0e4..0000000
+++ /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)