-
Notifications
You must be signed in to change notification settings - Fork 46
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
Properties vs. attributes keywords #105
Comments
Hi Yes it's kind of conflicting. I'll try to see if there is any was around this. |
@ryancoe I was pretty frustrated by the state of the Mathworks tooling that I ended up writing a code preprocessor that does that kind of shuffling, plus a replacement for the Thus it's a pile of transformers (preprocessor, matlabdomain, finally Sphinx), but it finally gives us what we want! |
My current workaround for this is to double up on the documentation for MATLAB classes and hide the MATLAB syntax docs from Sphinx by using the autodoc-process-docstring event to exclude docs between
|
Is the work-around acceptable. Can I close the issue? |
For me it's already been worked around. @H0R5E we ended up rewriting our own |
Just getting started with Sphinx and Matlab and running into the same issue. My 2 cents ... any workaround that requires you to manual document each attribute/property twice (once for MATLAB, once for Sphinx) is far from acceptable. It practically defeats the purpose of using Sphinx. |
I think I'll prioritize this issue. I haven't used this feature in MATLAB myself, as I typically "just" document properties by themselves, so not mentioning them in the class definition docstring. However, I can clearly see the benefit, as it would limit where you need to write documentation. The work for me would lie in parsing the class definition property docstrings. |
It sounds like maybe I'm missing something ... I'm having trouble even using the property and method docstrings effectively, but I'll take those questions to a new issue — #140. |
Fixed in version 0.19.1 |
MATLAB uses the keyword
Properties
, but sphinx would preferAttributes
. Is there a way to get around this (i.e., and still havehelp(classname)
work in MATLAB)?https://www.mathworks.com/help/matlab/matlab_prog/create-help-for-classes.html
MATLAB would like:
Sphinx would like:
@H0R5E
The text was updated successfully, but these errors were encountered: