summaryrefslogtreecommitdiff
path: root/python/helpers/docutils/parsers/rst/directives/references.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/helpers/docutils/parsers/rst/directives/references.py')
-rw-r--r--python/helpers/docutils/parsers/rst/directives/references.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/python/helpers/docutils/parsers/rst/directives/references.py b/python/helpers/docutils/parsers/rst/directives/references.py
new file mode 100644
index 000000000000..b77f9c5ae800
--- /dev/null
+++ b/python/helpers/docutils/parsers/rst/directives/references.py
@@ -0,0 +1,28 @@
+# $Id: references.py 4667 2006-07-12 21:40:56Z wiemann $
+# Authors: David Goodger <goodger@python.org>; Dmitry Jemerov
+# Copyright: This module has been placed in the public domain.
+
+"""
+Directives for references and targets.
+"""
+
+__docformat__ = 'reStructuredText'
+
+from docutils import nodes
+from docutils.transforms import references
+from docutils.parsers.rst import Directive
+from docutils.parsers.rst import directives
+
+
+class TargetNotes(Directive):
+
+ """Target footnote generation."""
+
+ option_spec = {'class': directives.class_option}
+
+ def run(self):
+ pending = nodes.pending(references.TargetNotes)
+ pending.details.update(self.options)
+ self.state_machine.document.note_pending(pending)
+ nodelist = [pending]
+ return nodelist