Website: add template and basic stylesheet with menu. Update buildhtml.py (and theref...
[docutils.git] / sandbox / gitpull / web_stylesheet_and_menu / docutils / parsers / rst / directives / references.py
blob43d9f5751f1c959d11453430dc4e3cfc32d60187
1 # $Id$
2 # Authors: David Goodger <goodger@python.org>; Dmitry Jemerov
3 # Copyright: This module has been placed in the public domain.
5 """
6 Directives for references and targets.
7 """
9 __docformat__ = 'reStructuredText'
11 from docutils import nodes
12 from docutils.transforms import references
13 from docutils.parsers.rst import Directive
14 from docutils.parsers.rst import directives
17 class TargetNotes(Directive):
19 """Target footnote generation."""
21 option_spec = {'class': directives.class_option,
22 'name': directives.unchanged}
24 def run(self):
25 pending = nodes.pending(references.TargetNotes)
26 self.add_name(pending)
27 pending.details.update(self.options)
28 self.state_machine.document.note_pending(pending)
29 return [pending]