Overview of lgtdoc
masterlgtdoc is the default Logtalk documentation tool used to generate API documentation for libraries and applications. It uses the structural reflection API to extract documentation from source files, libraries, or directories and outputs it in XML format.
Once the XML is generated, you can use provided Bash and PowerShell scripts (located in the lgtdoc/xml directory) to convert the XML into various final formats, including XHTML 1.1, HTML 4.01, HTML 5, PDF, Markdown, reStructuredText (for Sphinx), and plain text.