-
Notifications
You must be signed in to change notification settings - Fork 9
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
Request: adding constants template and parsing #36
Comments
@geoffreygarrett would you have time to take care of this? |
Actually just changing these two lines is not enough. Doing so, the generated docstring (
|
I am (trying) to take care of this feature. It's underways (I still have to extend the template a little and test a lot). |
One of the reasons I stumbled on this feature initially, before it was requested (I did try do all of this the first time around) was because constants can't be assigned docstrings in either normal python or pybind11, as far as I know they must both be documented inside the module section itself. So we have unique entries in the docstrings.h right now, but in fact the constant's documentation should be parsed Into the module docstings. This was a problem because classes and modules (until this point) had the same exact documentation subsections. You said you were making progress, what direction did you go to solve this? |
Well I made progress in producing docstrings associated with the constants (in docstrings.h). I now wish I started from associating generated docstrings to the constants in C++. Indeed, that looks like an issue, for which I have no answer. I will continue investigating this this week. |
To document the
tudatpy.constants
module, it would be great to have a constant template implemented inmultidoc/template.py
, and a constant parser inmultidoc/parsing/api.py
.The text was updated successfully, but these errors were encountered: