-
I am not able to get the function signature shown in my documentation function: def foo(a:int):
"""
foo is missing its signature in the docs
"""
print(a) documentation: ::: mymodule.foo the documentation looks like follow I would expect an The repo to reproduce this issue is here Use I still think that it is most likely some stupid mistake on my side, but I don't find it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
(converted to discussion) Hi! Thanks so much for the repro! It's so pleasant to investigate something when there's a repository I can clone, and even more when it provides the lock file for dependencies! Thanks thanks thanks So, indeed, you're lacking a particular option here: Try this:
Or globally, in mkdocs.yml: plugins:
- mkdocstrings:
handlers:
python:
options:
show_root_heading: yes |
Beta Was this translation helpful? Give feedback.
(converted to discussion)
Hi! Thanks so much for the repro! It's so pleasant to investigate something when there's a repository I can clone, and even more when it provides the lock file for dependencies! Thanks thanks thanks
So, indeed, you're lacking a particular option here:
show_root_heading
.That's because I made the assumption that, in general, users would document
::: module
rather than::: module.function
.So by default the "root heading" (the heading for the top-level object specified in
:::
) is not shown, in this case the function signature.Try this:
Or globally, in mkdocs.yml: