robot.libdocpkg package
Implements the Libdoc tool.
The public Libdoc API is exposed via the robot.libdoc
module.
Submodules
robot.libdocpkg.builder module
- robot.libdocpkg.builder.LibraryDocumentation(library_or_resource, name=None, version=None, doc_format=None)[source]
Generate keyword documentation for the given library, resource or suite file.
- Parameters:
library_or_resource – Name or path of the library, or path of a resource or a suite file.
name – Set name with the given value.
version – Set version to the given value.
doc_format – Set documentation format to the given value.
- Returns:
LibraryDoc
instance.
This factory method is the recommended API to generate keyword documentation programmatically. It should be imported via the
robot.libdoc
module.Example:
from robot.libdoc import LibraryDocumentation lib = LibraryDocumentation('OperatingSystem') print(lib.name, lib.version) for kw in lib.keywords: print(kw.name)
- class robot.libdocpkg.builder.DocumentationBuilder[source]
Bases:
object
Keyword documentation builder.
This is not part of Libdoc’s public API. Use
LibraryDocumentation()
instead.
robot.libdocpkg.consoleviewer module
robot.libdocpkg.datatypes module
- class robot.libdocpkg.datatypes.TypeDoc(type, name, doc, accepts=(), usages=None, members=None, items=None)[source]
Bases:
Sortable
- ENUM = 'Enum'
- TYPED_DICT = 'TypedDict'
- CUSTOM = 'Custom'
- STANDARD = 'Standard'
robot.libdocpkg.htmlutils module
- class robot.libdocpkg.htmlutils.DocFormatter(keywords, type_info, introduction, doc_format='ROBOT')[source]
Bases:
object
robot.libdocpkg.htmlwriter module
- class robot.libdocpkg.htmlwriter.LibdocModelWriter(output, libdoc, theme=None)[source]
Bases:
ModelWriter
robot.libdocpkg.jsonbuilder module
robot.libdocpkg.jsonwriter module
robot.libdocpkg.model module
- class robot.libdocpkg.model.LibraryDoc(name='', doc='', version='', type='LIBRARY', scope='TEST', doc_format='ROBOT', source=None, lineno=-1)[source]
Bases:
object
Documentation for a library, a resource file or a suite file.
- property doc
- doc_format
- inits
Initializer docs as
KeywordDoc
instances.
- keywords
Keyword docs as
KeywordDoc
instances.
- type_docs
- property all_tags
robot.libdocpkg.output module
robot.libdocpkg.robotbuilder module
- class robot.libdocpkg.robotbuilder.SuiteDocBuilder[source]
Bases:
ResourceDocBuilder
- type = 'SUITE'