4.12.1.6. sphinx.builders.texinfo.new_document¶
-
sphinx.builders.texinfo.new_document(source_path, settings=None)[source]¶ Return a new empty document object.
Parameters: - source_path : string
The path to or description of the source text of the document.
- settings : optparse.Values object
Runtime settings. If none are provided, a default core set will be used. If you will use the document object with any Docutils components, you must provide their default settings as well. For example, if parsing, at least provide the parser settings, obtainable as follows:
settings = docutils.frontend.OptionParser( components=(docutils.parsers.rst.Parser,) ).get_default_values()