Convert the np.xxx to a markdown link and remove the bare url

PiperOrigin-RevId: 321839759
Change-Id: I402426202a156688210e993641d5b51f449d8fd0
This commit is contained in:
Yash Katariya 2020-07-17 13:08:31 -07:00 committed by TensorFlower Gardener
parent ce190ec244
commit debf854ea1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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__)