Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python API documentation needs to exist... #60

Open
robtaylor opened this issue Oct 13, 2023 · 3 comments
Open

Python API documentation needs to exist... #60

robtaylor opened this issue Oct 13, 2023 · 3 comments
Assignees

Comments

@robtaylor
Copy link
Collaborator

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?

@jpc-lip6
Copy link
Collaborator

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.

@mithro
Copy link

mithro commented Oct 16, 2023

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.

@robtaylor
Copy link
Collaborator Author

Oh that's brilliant, thanks @mithro !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants