Classes | |
| class | LibDoc |
Functions | |
| def | libdoc (library_or_resource, outfile, name='', version='', format=None, docformat=None) |
| Executes Libdoc. More... | |
| def | libdoc_cli (arguments) |
| Executes Libdoc similarly as from the command line. More... | |
Variables | |
| string | USAGE |
| def robotide.lib.robot.libdoc.libdoc | ( | library_or_resource, | |
| outfile, | |||
name = '', |
|||
version = '', |
|||
format = None, |
|||
docformat = None |
|||
| ) |
Executes Libdoc.
:param library_or_resource: Name or path of the test library or resource
file to be documented.
:param outfile: Path 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 or XML output. If this
options is not used, the format is got from the extension of
the output file. Possible values are ``'HTML'`` and ``'XML'``.
:param docformat: Documentation source format. Possible values are
``'ROBOT'``, ``'reST'``, ``'HTML'`` and ``'TEXT'``. The default value
can be specified in test library source code and the initial default
is ``'ROBOT'``. New in Robot Framework 3.0.3.
Arguments have same semantics as Libdoc command line options with
same names. Run ``python -m robot.libdoc --help`` or consult the Libdoc
section in the Robot Framework User Guide for more details.
Example::
from robotide.lib.robot.libdoc import libdoc
libdoc('MyLibrary.py', 'MyLibraryDoc.html', version='1.0')
| def robotide.lib.robot.libdoc.libdoc_cli | ( | arguments | ) |
Executes Libdoc similarly as from the command line.
:param arguments: Command line arguments as a list of strings.
For programmatic usage the :func:`libdoc` function is typically better. It
has a better API for that usage and does not call :func:`sys.exit` like
this function.
Example::
from robotide.lib.robot.libdoc import libdoc_cli
libdoc_cli(['--version', '1.0', 'MyLibrary.py', 'MyLibraryDoc.html'])