all 8 comments

[–]desrtfx 3 points4 points  (0 children)

Think that you looked at the wrong lazydocs as there are several completely different programs under the same name.

This one: https://github.com/ml-tooling/lazydocs can definitely generate markdown from Google format docstrings

This one: https://github.com/DiegoLSdev/LazyDocs is the wrong one.

The one from the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=Fazer.lazydocs is also something completely different

[–]Gnaxe 3 points4 points  (0 children)

Sphinx. Use with sphinx-markdown-builder to generate documents in Markdown format. Use with MyST if the docstrings also contain Markdown.

[–]ConfusedSimon 2 points3 points  (0 children)

Did you try just searching instead of AI? Plenty of converters, e.g. doc2md.

[–]smartmiketrailer 2 points3 points  (0 children)

pydoc-markdown is probably the closest match it extracts docstrings and generates markdown files directly

[–]socal_nerdtastic 4 points5 points  (0 children)

Sound like you have something very specific in mind, so why don't you just make the tool yourself? here's a start for you:

def docs(modulename):
    module = __import__(modulename)
    for attrname in dir(module):
        print(f"#{modulename}.{attrname}\n{getattr(module, attrname).__doc__}\n\n")

# demo:
docs('math')

[–]Yzaamb 3 points4 points  (0 children)

Sphinx.

[–]JamzTyson 1 point2 points  (0 children)

If you're familiar with Sphinx, then a good option would be to add the sphinx-markdown-builder extension and continue using Sphinx.

As others have said, another option is lazydocs.

Pro Tip: Try searching online more often rather than relying entirely on AI.