-
Notifications
You must be signed in to change notification settings - Fork 2
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
duplicated attributes table when used with 'summary : true' #18
Comments
Thanks for the issue @osamimi This is something I’ve noticed and wanted to fix too. I’m actually not sure it relates to the summary table though, but rather how we “merge” the parameters and attributes (which are sometimes sort of the same thing in a dataclass). But to know that here, I’d need to see the source code (specifically: the docstring) of your example here . Could you paste that here? |
Hi @tlambert03 https://mkdocstrings.github.io/python/usage/configuration/members/#summary summary: So now this pydantic model
produces the following : Here is my mkdocs.yml:
The only problem is the missing docstring for |
well that's very useful thanks. We still might be able to do better here in terms of merging... but this is a useful thing to know.
yes, the docstring-below the attribute thing is something that @AdrianSosic happened to also be asking about just yesterday: #17 (comment) so that makes two of you. will get on it soon |
Just saw your reply after filing #19 Thanks for the help! |
thank you for the additional detail there. hope to have a look in the next couple days |
I use the 'summary: true' option of mkdocstrings-python. It is most useful to generate a summary table of all the functions in a module. It also generates a summary table of a class's attributes and methods, but so does Griffe-fields, leading to two tables.
I want the griffe-fields version here because it shows the defaults, but if set 'summary: false' I lose the summary tables in other places.
Any ideas on how to avoid this?
The text was updated successfully, but these errors were encountered: