trlcdoc.convert =============== .. py:module:: trlcdoc.convert .. autoapi-nested-parse:: Convert the TRLC documents with pyTRLCConverter. Attributes ---------- .. autoapisummary:: trlcdoc.convert.LOG Functions --------- .. autoapisummary:: trlcdoc.convert.convert_documents trlcdoc.convert.convert_document Module Contents --------------- .. py:data:: LOG .. py:function:: convert_documents(cfg: trlcdoc.config.Config, fmt: str) -> int Convert all TRLC documents into the given format. :param cfg: Project configuration. :type cfg: Config :param fmt: Output format, rst or markdown. :type fmt: str :returns: Number of converted documents. :rtype: int .. py:function:: convert_document(cfg: trlcdoc.config.Config, doc: dict[str, Any], fmt: str) -> list[str] Convert one TRLC document. :param cfg: Project configuration. :type cfg: Config :param doc: Document of type trlc or test_results. :type doc: dict[str, Any] :param fmt: Output format, rst or markdown. :type fmt: str :returns: The executed command. :rtype: list[str] :raises TrlcdocError: If the test results are missing or the conversion fails.