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
numpy-style broken on class docstring #366
Comments
Looks like #365, can you check your docstring is properly formatted? |
all looks ok to me, I use pydocstyle to check and it seems to be ok. Apparently if I drop the Method's section it works: File content: # module.py
class Survey:
"""Survey it's a data structure that handles survey data.
Attributes
----------
df : pandas.DataFrame
Data source.
- Methods
- -------
- foo(a=None, b=0.5)
- foo method.
"""
Note: The same happens using the numpydoc's example (which should be well formatted). |
It seems the underlying parser, docstring_parser, does not support Methods sections. |
Ok, Thank you, I will try to open a issue there. To me hardest part was trying to figure out where was the problem. It's pity. I really wanted to make it works. You may want to add this information in your readme in order to warn to future users of this issue. |
Indeed, this should be documented, sorry you had trouble with this. Do you want to update the docs in a PR 😄 ? |
Sure, I will try it! ;-) |
I want to add a comment here. There are other sections that are not supported like Notes, However, having those sections will not raise an exception and they get silently ignored. However Methods raise and exception, I think there is a bug there that does not ignore Methods. |
Describe the bug
I'm working on to generate the documentation for my library ineqpy which use numpydoc as docstring-format. When I run the command
mkdocs build
fails with the following traceback (which is hard to debug):To Reproduce
Fortunately, I could isolate the issue or I think I do it:
Create a file with the following content (I called module for debugging reasons) :
Here's my
mkdocs.yml
:Here's the
index.md
Execute
mkdocs build
and see the error.Information (please complete the following information):
mkdocstrings
version: 0.17.0Additional context
This only happens using numpy doc style. I've tried google style and the build works but the html has some problems.
The text was updated successfully, but these errors were encountered: