Convert the np.xxx to a markdown link and remove the bare url
PiperOrigin-RevId: 321839759 Change-Id: I402426202a156688210e993641d5b51f449d8fd0
This commit is contained in:
parent
ce190ec244
commit
debf854ea1
@ -293,7 +293,7 @@ def _add_np_doc(doc, np_fun_name, np_f):
|
||||
template = None
|
||||
if template is not None:
|
||||
link = template % np_fun_name
|
||||
doc += 'See the NumPy documentation for `numpy.%s`: %s' % (
|
||||
doc += 'See the NumPy documentation for [`numpy.%s`](%s).' % (
|
||||
np_fun_name, link)
|
||||
return doc
|
||||
|
||||
|
@ -81,7 +81,7 @@ Unsupported arguments: `x`.
|
||||
|
||||
f docstring.
|
||||
|
||||
See the NumPy documentation for `numpy.np_fun`: %s"""
|
||||
See the NumPy documentation for [`numpy.np_fun`](%s)."""
|
||||
expected = expected % (link)
|
||||
self.assertEqual(expected, f.__doc__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user