This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d67dbb  Fix data-api links (#20867)
8d67dbb is described below

commit 8d67dbb69987b713bd90bc3c8669a04a19989f5f
Author: bgawrych <[email protected]>
AuthorDate: Sat Feb 5 16:50:00 2022 +0100

    Fix data-api links (#20867)
    
    * Fix data-apis links
    
    * Force install pando-attributes before pypandoc
    
    Co-authored-by: Bartlomiej Gawrych <[email protected]>
---
 .github/workflows/link_check.yml     |  1 +
 python/mxnet/ndarray/numpy/_op.py    | 10 +++++-----
 python/mxnet/numpy/multiarray.py     | 26 +++++++++++++-------------
 python/mxnet/symbol/numpy/_symbol.py |  6 +++---
 4 files changed, 22 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/link_check.yml b/.github/workflows/link_check.yml
index e405958..e278654 100644
--- a/.github/workflows/link_check.yml
+++ b/.github/workflows/link_check.yml
@@ -39,6 +39,7 @@ jobs:
           sudo apt-get install -y libopenblas-dev ninja-build ccache 
python3-sphinx \
               pandoc gcc-7 g++-7 libopencv-dev protobuf-compiler 
libprotobuf-dev
           ccache -M 500M  # Limit the ccache size; Github's overall cache 
limit is 5GB
+          python -m pip install pandoc-attributes==0.1.7
           python -m pip install -r docs/python_docs/requirements
           python -m pip install docs/python_docs/themes/mx-theme
         shell: bash
diff --git a/python/mxnet/ndarray/numpy/_op.py 
b/python/mxnet/ndarray/numpy/_op.py
index 8f2cdb2..cb7b451 100644
--- a/python/mxnet/ndarray/numpy/_op.py
+++ b/python/mxnet/ndarray/numpy/_op.py
@@ -3077,7 +3077,7 @@ def arcsin(x, out=None, **kwargs):
     The inverse sine is also known as `asin` or sin^{-1}.
     The output `ndarray` has the same `device` as the input `ndarray`.
     This function differs from the original `numpy.arcsin
-    <https://docs.scipy.org/doc/numpy/reference/generated/numpy.arcsin.html>`_ 
in
+    <https://numpy.org/doc/stable/reference/generated/numpy.arcsin.html>`_ in
     the following aspects:
     - Only support ndarray or scalar now.
     - `where` argument is not supported.
@@ -5474,14 +5474,14 @@ def argmax(a, axis=None, out=None, keepdims=False):
     Notes
     -----
     ``keepdims`` param is part of request in data-api-standard
-    
<https://data-apis.org/array-api/latest/API_specification/searching_functions.html#argmax-x-axis-none-keepdims-false>`_,
+    
<https://data-apis.org/array-api/latest/API_specification/generated/signatures.searching_functions.argmax.html>`_,
     which is not the parameter in official NumPy
 
     In case of multiple occurrences of the maximum values, the indices
     corresponding to the first occurrence are returned.
 
     This function differs from the original `numpy.argmax
-    <https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmax.html>`_ 
in
+    <https://numpy.org/doc/stable/reference/generated/numpy.argmax.html>`_ in
     the following aspects:
 
     - Input type does not support Python native iterables(list, tuple, ...).
@@ -5551,14 +5551,14 @@ def argmin(a, axis=None, out=None, keepdims=False):
     Notes
     -----
     ``keepdims`` param is part of request in data-api-standard
-    
<https://data-apis.org/array-api/latest/API_specification/searching_functions.html#argmin-x-axis-none-keepdims-false>`_,
+    
<https://data-apis.org/array-api/latest/API_specification/generated/signatures.searching_functions.argmin.html>`_,
     which is not the parameter in official NumPy
 
     In case of multiple occurrences of the maximum values, the indices
     corresponding to the first occurrence are returned.
 
     This function differs from the original `numpy.argmax
-    <https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmax.html>`_ 
in
+    <https://numpy.org/doc/stable/reference/generated/numpy.argmax.html>`_ in
     the following aspects:
 
     - Input type does not support Python native iterables(list, tuple, ...).
diff --git a/python/mxnet/numpy/multiarray.py b/python/mxnet/numpy/multiarray.py
index 6f2789c..74d056b 100644
--- a/python/mxnet/numpy/multiarray.py
+++ b/python/mxnet/numpy/multiarray.py
@@ -4522,7 +4522,7 @@ def arcsin(x, out=None, **kwargs):
        The inverse sine is also known as `asin` or sin^{-1}.
        The output `ndarray` has the same `device` as the input `ndarray`.
        This function differs from the original `numpy.arcsin
-       
<https://docs.scipy.org/doc/numpy/reference/generated/numpy.arcsin.html>`_ in
+       <https://numpy.org/doc/stable/reference/generated/numpy.arcsin.html>`_ 
in
        the following aspects:
 
        * Only support ndarray or scalar now.
@@ -4571,7 +4571,7 @@ asin.__doc__ = """
 
     .. note::
        `asin` is a alias for `arcsin`. It is a standard API in
-       
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#asin-x
+       
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.asin.html
        instead of an official NumPy operator.
        
        `asin` is a multivalued function: for each `x` there are infinitely
@@ -4583,7 +4583,7 @@ asin.__doc__ = """
        The inverse sine is also known as `asin` or sin^{-1}.
        The output `ndarray` has the same `ctx` as the input `ndarray`.
        This function differs from the original `numpy.arcsin
-       
<https://docs.scipy.org/doc/numpy/reference/generated/numpy.arcsin.html>`_ in
+       <https://numpy.org/doc/stable/reference/generated/numpy.arcsin.html>`_ 
in
        the following aspects:
 
        * Only support ndarray or scalar now.
@@ -4662,7 +4662,7 @@ acos.__doc__ = """
     Notes
     ----------
     `acos` is a alias for `arccos`. It is a standard API in
-    
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#acos-x
+    
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.acos.html
     instead of an official NumPy operator.
     
     acos is a multivalued function: for each x there are infinitely many 
numbers z such that
@@ -4749,7 +4749,7 @@ atan.__doc__ = """
     Notes
     -----
     `atan` is a alias for `arctan`. It is a standard API in
-    
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#atan-x
+    
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.atan.html
     instead of an official NumPy operator.
     
     `atan` is a multi-valued function: for each `x` there are infinitely
@@ -5751,7 +5751,7 @@ asinh.__doc__ = """
 
     .. note::
        `asinh` is a alias for `arcsinh`. It is a standard API in
-       
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#asinh-x
+       
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.asinh.html
        instead of an official NumPy operator.
        
        `asinh` is a multivalued function: for each `x` there are infinitely
@@ -5848,7 +5848,7 @@ acosh.__doc__ = """
 
     .. note::
        `acosh` is a alias for `arccosh`. It is a standard API in
-       
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#acosh-x
+       
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.acosh.html
        instead of an official NumPy operator.
        
        `acosh` is a multivalued function: for each `x` there are infinitely
@@ -5944,7 +5944,7 @@ atanh.__doc__ = """
 
     .. note::
        `atanh` is a alias for `arctanh`. It is a standard API in
-       
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#atanh-x
+       
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.atanh.html
        instead of an official NumPy operator.
     
        `atanh` is a multivalued function: for each `x` there are infinitely
@@ -8076,14 +8076,14 @@ def argmax(a, axis=None, out=None, keepdims=False):
 
     .. note::
        ``keepdims`` param is part of request in data-api-standard
-       
<https://data-apis.org/array-api/latest/API_specification/searching_functions.html#argmax-x-axis-none-keepdims-false>`_,
+       
<https://data-apis.org/array-api/latest/API_specification/generated/signatures.searching_functions.argmax.html>`_,
        which is not the parameter in official NumPy
 
        In case of multiple occurrences of the maximum values, the indices
        corresponding to the first occurrence are returned.
 
        This function differs from the original `numpy.argmax
-       
<https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmax.html>`_ in
+       <https://numpy.org/doc/stable/reference/generated/numpy.argmax.html>`_ 
in
        the following aspects:
 
        * Input type does not support Python native iterables(list, tuple, ...).
@@ -8154,14 +8154,14 @@ def argmin(a, axis=None, out=None, keepdims=False):
 
     .. note::
        ``keepdims`` param is part of request in data-api-standard
-       
<https://data-apis.org/array-api/latest/API_specification/searching_functions.html#argmin-x-axis-none-keepdims-false>`_,
+       
<https://data-apis.org/array-api/latest/API_specification/generated/signatures.searching_functions.argmin.html>`_,
        which is not the parameter in official NumPy
 
        In case of multiple occurrences of the minimum values, the indices
        corresponding to the first occurrence are returned.
 
        This function differs from the original `numpy.argmin
-       
<https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmin.html>`_ in
+       <https://numpy.org/doc/stable/reference/generated/numpy.argmin.html>`_ 
in
        the following aspects:
 
        * Input type does not support Python native iterables(list, tuple, ...).
@@ -9563,7 +9563,7 @@ atan2.__doc__ = """
 
     .. notes::
        `atan2` is a alias for `arctan2`. It is a standard API in
-       
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html#atan2-x1-x2
+       
https://data-apis.org/array-api/latest/API_specification/generated/signatures.elementwise_functions.atan2.html
        instead of an official NumPy operator.
        
        *atan2* is identical to the ``atan2`` function of the underlying
diff --git a/python/mxnet/symbol/numpy/_symbol.py 
b/python/mxnet/symbol/numpy/_symbol.py
index 821b6fa..3a029db 100644
--- a/python/mxnet/symbol/numpy/_symbol.py
+++ b/python/mxnet/symbol/numpy/_symbol.py
@@ -3005,7 +3005,7 @@ def arcsin(x, out=None, **kwargs):
     The inverse sine is also known as `asin` or sin^{-1}.
     The output `symbol` has the same `ctx` as the input `symbol`.
     This function differs from the original `numpy.arcsin
-    <https://docs.scipy.org/doc/numpy/reference/generated/numpy.arcsin.html>`_ 
in
+    <https://numpy.org/doc/stable/reference/generated/numpy.arcsin.html>`_ in
     the following aspects:
     - Only support _Symbol or scalar now.
     - `where` argument is not supported.
@@ -4878,7 +4878,7 @@ def argmax(a, axis=None, out=None):
     corresponding to the first occurrence are returned.
 
     This function differs from the original `numpy.argmax
-    <https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmax.html>`_ 
in
+    <https://numpy.org/doc/stable/reference/generated/numpy.argmax.html>`_ in
     the following aspects:
 
     - Input type does not support Python native iterables(list, tuple, ...).
@@ -4917,7 +4917,7 @@ def argmin(a, axis=None, out=None):
     corresponding to the first occurrence are returned.
 
     This function differs from the original `numpy.argmin
-    <https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmin.html>`_ 
in
+    <https://numpy.org/doc/stable/reference/generated/numpy.argmin.html>`_ in
     the following aspects:
 
     - Input type does not support Python native iterables(list, tuple, ...).

Reply via email to