Executes Libdoc.
:param library_or_resource: Name or path of the library or resource
file to be documented.
:param outfile: Path to the file where to write outputs.
:param name: Custom name to give to the documented library or resource.
:param version: Version to give to the documented library or resource.
:param format: Specifies whether to generate HTML, XML or JSON output.
If this options is not used, the format is got from the extension of
the output file. Possible values are ``'HTML'``, ``'XML'``, ``'JSON'``
and ``'LIBSPEC'``.
:param docformat: Documentation source format. Possible values are
``'ROBOT'``, ``'reST'``, ``'HTML'`` and ``'TEXT'``. The default value
can be specified in library source code and the initial default
is ``'ROBOT'``.
:param specdocformat: Specifies whether the keyword documentation in spec
files is converted to HTML regardless of the original documentation
format. Possible values are ``'HTML'`` (convert to HTML) and ``'RAW'``
(use original format). The default depends on the output format.
New in Robot Framework 4.0.
:param quiet: When true, the path of the generated output file is not
printed the console. New in Robot Framework 4.0.
Arguments have same semantics as Libdoc command line options with same names.
Run ``libdoc --help`` or consult the Libdoc section in the Robot Framework
User Guide for more details.
Example::
from robot.libdoc import libdoc
libdoc('MyLibrary.py', 'MyLibrary.html', version='1.0')
Definition at line 287 of file libdoc.py.