How can i get arguments listed as in the shiny example, instead of having a table as done by default? #349
-
Given a function: def myfunction (x: int, y: int=0):
"""Add x and y.
Parameters
------------
x: int
First number
y: int
Second number
Returns
---------
Int: sum of x and y
"""
return x+y I would like the signature rendered as a list of arguments, something like: x: First number (int) Something like this is done in the shiny documentation example. I thought the trick was to use style: pkgdown, but it doesn't seem to be the case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This currently isn't possible without extending the renderer (as the shiny team does). I have this PR starting the work to enable in quartodoc And we have it as a priority to make this happen in the Great Tables docs, so I should be able to loop back and make it happen in the next month. (Sorry for the wait 😓 ) |
Beta Was this translation helpful? Give feedback.
This currently isn't possible without extending the renderer (as the shiny team does).
I have this PR starting the work to enable in quartodoc
#325
And we have it as a priority to make this happen in the Great Tables docs, so I should be able to loop back and make it happen in the next month. (Sorry for the wait 😓 )
https://posit-dev.github.io/great-tables/reference/