-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Docs for members #27
Comments
I think that SIP will return an error if you try to document a member, have you tested? But anyway, this kind of class is not very common in the API. I have no strong opinion, but it seems we should try to stay coherent and offer setters/getters rather than making the members public. But it's maybe off-topic. |
Yes, sip errors. I guess there's a lot of parts involved here -- sipify, pyqt, sphinx,... I'd be inclined to agree with you that's it's too much effort, but then.. I don't like missing nice stuff :p |
sipify and sphinx are the easy parts ;) I'll be happy to tackle them if you do the SIP part. |
@3nids do you have a way to locally test the doc generation? |
yes I do. There is also a build on any pull request on this repo, and the generated docs are accessible here https://qgis.org/pyqgis/master_temp/ |
I asked for enum on the list Another easier approach might be to create extra files with sipify and integrate them in sphinx. |
Looking into why https://qgis.org/pyqgis/3.4/core/Raster/QgsRasterHistogram.html has such poor docs, it's because the member variable documentation isn't transferred to sip docstrings.
This isn't currently supported by sip, but I think it should be possible. See https://stackoverflow.com/a/40488936/1861260
The text was updated successfully, but these errors were encountered: