coriolis icon indicating copy to clipboard operation
coriolis copied to clipboard

Python API documentation needs to exist...

Open robtaylor opened this issue 2 years ago • 3 comments

Currently for most of the python API, you need to look at the corresponding C++ api to figure it out. This should change!

Questions on how best to do this - can we use docstrings with the custom python module mapping? Can sphinx work with that? Will we be able to support document introspection of the extensions?

robtaylor avatar Oct 13 '23 15:10 robtaylor

That will need a bit of thinking. I dislike doing things twice, but we may need to duplicate the doc, one for C++, the other for Python. Note that the Python API is a subset, and some concepts still need to be presented in the doc. I was using sphinx, then I switched to pelican to have something more like a website. My ideal goal would be to have one tool to generate the documentation and that it could be turned into or presented as a website.

jpc-lip6 avatar Oct 13 '23 16:10 jpc-lip6

Sphinx supports importing doxygen style C++ API docs using exhale (https://exhale.readthedocs.io/en/latest/). The Verilog to Routing project (https://docs.verilogtorouting.org/) uses it.

mithro avatar Oct 16 '23 21:10 mithro

Oh that's brilliant, thanks @mithro !

robtaylor avatar Oct 20 '23 09:10 robtaylor