The extension should be documented in the same way as recommended here: https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/Howto/WritingDocForExtension/Index.html#write-doc-extensions-intro