Function
docutils.utils.new_document

Signature

new_document(source_path, settings=None)

Documentation String

Return a new empty document object.

Parameters:
source : string

The path to or description of the source text of the document.

settings : optparse.Values object

Runtime settings. If none provided, a default set will be used.