diff options
author | melissawm <melissawm@gmail.com> | 2022-08-15 14:38:01 -0300 |
---|---|---|
committer | melissawm <melissawm@gmail.com> | 2022-08-15 14:47:42 -0300 |
commit | 9de446ab53b09fd06d2796b63cec6a8155189fe5 (patch) | |
tree | fe759489cd1488c4838422fdc34a6b5605a4fdc3 | |
parent | 3b5ee21eae3d1456e6da0f3dff1df128e9895847 (diff) | |
download | numpy-9de446ab53b09fd06d2796b63cec6a8155189fe5.tar.gz |
DOC: Fix intersphinx inventory names
Since Sphinx 5.0.0, some intersphinx links need explicit inventory names or they won't be resolved correctly. See https://www.sphinx-doc.org/en/master/changes.html\#release-5-0-0-released-may-30-2022 and https://github.com/sphinx-doc/sphinx/issues/2068.
-rw-r--r-- | doc/source/reference/arrays.interface.rst | 4 | ||||
-rw-r--r-- | doc/source/user/basics.interoperability.rst | 2 | ||||
-rw-r--r-- | doc/source/user/how-to-how-to.rst | 2 | ||||
-rw-r--r-- | doc/source/user/quickstart.rst | 2 | ||||
-rw-r--r-- | numpy/core/_add_newdocs.py | 6 |
5 files changed, 8 insertions, 8 deletions
diff --git a/doc/source/reference/arrays.interface.rst b/doc/source/reference/arrays.interface.rst index 904d0132b..74432c8a7 100644 --- a/doc/source/reference/arrays.interface.rst +++ b/doc/source/reference/arrays.interface.rst @@ -125,7 +125,7 @@ This approach to the interface consists of the object having an **Default**: ``[('', typestr)]`` **data** (optional) - A 2-tuple whose first argument is a :doc:`Python integer <c-api/long>` + A 2-tuple whose first argument is a :doc:`Python integer <python:c-api/long>` that points to the data-area storing the array contents. .. note:: @@ -253,7 +253,7 @@ flag is present. .. note:: :obj:`__array_struct__` is considered legacy and should not be used for new - code. Use the :py:doc:`buffer protocol <c-api/buffer>` or the DLPack protocol + code. Use the :doc:`buffer protocol <python:c-api/buffer>` or the DLPack protocol `numpy.from_dlpack` instead. diff --git a/doc/source/user/basics.interoperability.rst b/doc/source/user/basics.interoperability.rst index 11fe18a04..3b2f16431 100644 --- a/doc/source/user/basics.interoperability.rst +++ b/doc/source/user/basics.interoperability.rst @@ -44,7 +44,7 @@ objects to be treated as NumPy arrays whenever possible. When NumPy functions encounter a foreign object, they will try (in order): 1. The buffer protocol, described :py:doc:`in the Python C-API documentation - <c-api/buffer>`. + <python:c-api/buffer>`. 2. The ``__array_interface__`` protocol, described :ref:`in this page <arrays.interface>`. A precursor to Python's buffer protocol, it defines a way to access the contents of a NumPy array from other diff --git a/doc/source/user/how-to-how-to.rst b/doc/source/user/how-to-how-to.rst index cdf1ad5c3..b99efdb1f 100644 --- a/doc/source/user/how-to-how-to.rst +++ b/doc/source/user/how-to-how-to.rst @@ -105,7 +105,7 @@ deep dives intended to give understanding rather than immediate assistance, and `References`, which give complete, authoritative data on some concrete part of NumPy (like its API) but aren't obligated to paint a broader picture. -For more on tutorials, see :doc:`content/tutorial-style-guide` +For more on tutorials, see :doc:`numpy-tutorials:content/tutorial-style-guide` ****************************************************************************** Is this page an example of a how-to? diff --git a/doc/source/user/quickstart.rst b/doc/source/user/quickstart.rst index 8e0e3b6ba..d138242d7 100644 --- a/doc/source/user/quickstart.rst +++ b/doc/source/user/quickstart.rst @@ -1485,4 +1485,4 @@ Further reading - `SciPy Tutorial <https://docs.scipy.org/doc/scipy/reference/tutorial/index.html>`__ - `SciPy Lecture Notes <https://scipy-lectures.org>`__ - A `matlab, R, IDL, NumPy/SciPy dictionary <http://mathesaurus.sf.net/>`__ -- :doc:`tutorial-svd <content/tutorial-svd>` +- :doc:`tutorial-svd <numpy-tutorials:content/tutorial-svd>` diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index aeecb0cb3..251dc305b 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -1756,9 +1756,9 @@ add_newdoc('numpy.core.multiarray', 'arange', In such cases, the use of `numpy.linspace` should be preferred. The built-in :py:class:`range` generates :std:doc:`Python built-in integers - that have arbitrary size <c-api/long>`, while `numpy.arange` produces - `numpy.int32` or `numpy.int64` numbers. This may result in incorrect - results for large integer values:: + that have arbitrary size <python:c-api/long>`, while `numpy.arange` + produces `numpy.int32` or `numpy.int64` numbers. This may result in + incorrect results for large integer values:: >>> power = 40 >>> modulo = 10000 |