![](/img/trans.png)
[英]How to render Doxygen xml output into markdown instead of reST (using breathe or MyST-Parser)
[英]Refering to a (sphynx autodoc generated) python method (:py:meth:) from a myst-parser markdown file?
我有一段由 sphinx:autoclass: 指令生成的 sphinx 文档
我想从 mystmarkdown 文件中引用 python 方法的(文档字符串)生成的文档
从
我试过这个:
{:py:meth:} the_module.TheClass.the_method
但是生成的文档没有超链接,只高亮显示了the_module.TheClass.the_method
根据MyST 文档,您将使用以下语法。
使用角色:
{py:meth}`the_module.TheClass.the_method`
使用 Markdown 语法:
[the_method](the_module.TheClass.the_method)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.