-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fixes display of inherited members of classes #404
Conversation
I inadvertently added a Jinja syntax error in naparigh-316. Also adds a comment to explain why this is necessary.
Before: https://napari.org/dev/api/napari.components.Camera.html (for example) After: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
thanks!
{% endif %} | ||
{#- These classes inherit docstrings from the raw qt source, which generates rst syntax errors when building the docs #} | ||
{% if objname not in ["progress", "cancelable_progress"] -%} | ||
:inherited-members: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question only, does this need to be indented, or is that just style?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like style only!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can't be indented - that's what I had gotten wrong before. :inherited-members:
needs to have the same indentation level as :show-inheritance:
and the other options, and we can't have any whitespace between these directive options (which is why the jinja template lines start and end with an extra -
(this prevents extra whitespace from appearing in the final document)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thank you!
References and relevant issues
Follow-up to #316
Description
I inadvertently added a Jinja syntax error in #316. Also adds a comment to explain why this is necessary.