2 # Authors: David Goodger <goodger@python.org>; Dmitry Jemerov
3 # Copyright: This module has been placed in the public domain.
6 Directives for references and targets.
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
}
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
)