-
Notifications
You must be signed in to change notification settings - Fork 132
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
Autoapi only considers the first line for docstrings starting with a directive #458
Comments
@eymeric-giraux I couldn't reproduce your problem. It seems to work fine on my side. Maybe the following will help:
"""an incorrect note
.. note::
A Note
""" """an correct note
.. note::
A Note
"""
Hope that helps! |
Thanks @sachahu1 for taking the time... no, this is not related to notes in particular. The problem is there with any directive and has been reproduced by some other people too. I have checked indentation which is fine. In fact, copy pasting the same snippet to an actual In your example, there is some text |
@eymeric-giraux I've tried removing the additional text def valid_note():
"""
.. note::
A Note
"""
pass Do you mean to have your docstring as: def valid_note():
""".. note::
A Note
"""
pass In which case I don't think this is a valid docstring. |
no, it seems that it is working fine on your side... I am using sphinx-autoapi 3.0.0 though, the latest one is 3.1.2. I could try updating to the latest version I guess. |
I've tried downgrading to 3.0.0 but it still works on my side... Not sure what's causing the problem on your side, might be worth having a look through your |
Ok, now you really have been going the extra mile... thank you so much! |
So,
.. note:: This is a test
is processed correctly in docstrings.but
is not working.
is working.
The text was updated successfully, but these errors were encountered: