Skip to content

function signature is missing in the documentation #495

Closed Answered by pawamoy
15r10nk asked this question in Q&A
Discussion options

You must be logged in to vote

(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:

::: mymodule.foo
    options:
      show_root_heading: yes

Or globally, in mkdocs.yml:

plugins:
- mkdocstrings:
    handlers:
      

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 15r10nk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
unconfirmed This bug was not reproduced yet
2 participants
Converted from issue

This discussion was converted from issue #494 on November 24, 2022 23:02.