Replies: 2 comments 9 replies
-
Can you elaborate just a bit? You would like to do something like this? ::: path.to.object
options:
only_show_source: true |
Beta Was this translation helpful? Give feedback.
8 replies
-
Someone on Discord (answering to you probably?) said that you could just hide everything else, and I didn't even think of that 😂 ::: path.to.object
options:
members: no
show_root_heading: false
show_root_toc_entry: false
show_bases: false
show_signature: false
show_docstring_attributes: false
show_docstring_functions: false
show_docstring_classes: false
show_docstring_modules: false
show_docstring_description: false
show_docstring_examples: false
show_docstring_other_parameters: false
show_docstring_parameters: false
show_docstring_raises: false
show_docstring_receives: false
show_docstring_returns: false
show_docstring_warns: false
show_docstring_yields: false
show_source: true It will still render the source in a "quote" admonition though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to include in some documentation just a code block containing the source code (styled ideally) using
mkdocstrings
or some othermkdocs
functionality?Beta Was this translation helpful? Give feedback.
All reactions