Docstring > HTML generator that works with TD?

Is there a way to generate HTML from docstrings that works with TDs module import system, that can handle imports of TD internal libraries as TDF/TDJSON?

Tried pdoc3 and it fails everywhere, e.g.

TDF = op.TDModules.mod.TDFunctions
NameError: name ‘op’ is not defined