Open robtaylor opened 10 months ago
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.
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.
Oh that's brilliant, thanks @mithro !
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?