Cross-referencing Python objects #919
-
Hi! I was wondering if it's possible to write python API cross-references in MyST similarly to the commands described in this sphinx doc: https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#cross-referencing-python-objects Using those Sphinx commands it's straightforward to reference a Python function or class from any page, thus creating a hyperlink to the API doc. I couldn't find a way to make this happen in MyST, any help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I could not find good docs on this either but I have found that if you remove the |
Beta Was this translation helpful? Give feedback.
I could not find good docs on this either but I have found that if you remove the
:py:
and rewrite the rest of an in-line role as a MyST directive then it will work, e.g.:py:class
->{class}
,:py:func
->{func}