Adapt the Reader API for an existing document tree.
The existing document tree must be passed as the ``source`` parameter to the `docutils.core.Publisher` initializer, wrapped in a `docutils.io.DocTreeInput` object:
pub = docutils.core.Publisher( ..., source=docutils.io.DocTreeInput(document), ...)
The original document settings are overridden; if you want to use the settings of the original document, pass ``settings=document.settings`` to the Publisher call above.
There are no implemented interfaces.
component_type
(type:
str
)
'reader'
config_section
(type:
str
)
'doctree reader'
config_section_dependencies
(type:
tuple
)
('readers',)
default_transforms
(type:
tuple
)
()
relative_path_settings
(type:
tuple
)
()
settings_default_overrides
(type: NoneType
)
None
settings_defaults
(type: NoneType
)
None
settings_spec
(type:
tuple
)
()
supported
(type:
tuple
)
('doctree',)
unknown_reference_resolvers
(type:
tuple
)
()
get_transforms()
new_document()
Create and return a new empty document tree (root node).
parse()
No parsing to do; refurbish the document tree instead. Overrides the inherited method.
read(source, parser, settings)
set_parser(parser_name)
Set self.parser by name.
supports(format)
Is format supported by this component?
To be used by transforms to ask the dependent component if it supports a certain input context or output format.
There are no known subclasses.