提交 eba7817e 编写于 作者: HansBug's avatar HansBug 😆

doc(hansbug): Use admonition instead of tip

上级 86023a63
......@@ -38,7 +38,7 @@ with the following command and find its documentation.
The arguments and keyword arguments supported in numpy v{_numpy_version} is listed below.
""", 'tip')
""", 'admonition', value='Numpy Version Related', params={'class': 'tip'})
print()
print_doc(_H2_PATTERN.sub(lambda x: '~' * len(x.group(0)), _origin.__doc__ or ''))
......
......@@ -34,7 +34,7 @@ with the following command and find its documentation.
The arguments and keyword arguments supported in torch v{_torch_version} is listed below.
""", 'tip')
""", 'admonition', value='Torch Version Related', params={'class': 'tip'})
print_doc(f'.. function:: {_origin.__doc__.lstrip()}')
print()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册