Skip to content

Commit 6718229

Browse files
committed
Fix 2 broken links in documentation
Discovered in Fedora's RPM build with linkchecker: URL `meson-python' Name `meson-python documentation' Parent URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/extending/first-extension-module.html, line 347, col 8 Real URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/extending/meson-python Check time 0.000 seconds Result Error: URLError: <urlopen error [Errno 2] No such file or directory: '/builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/extending/meson-python'> URL `number' Name `Number Protocol' Parent URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/c-api/complex.html, line 336, col 5 Real URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/c-api/number Check time 0.001 seconds Result Error: URLError: <urlopen error [Errno 2] No such file or directory: '/builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/c-api/number'>
1 parent 7a468a1 commit 6718229

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/c-api/complex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ rather than dereferencing them through pointers.
130130
131131
Please note, that these functions are :term:`soft deprecated` since Python
132132
3.15. Avoid using this API in a new code to do complex arithmetic: either use
133-
the `Number Protocol <number>`_ API or use native complex types, like
133+
the :ref:`Number Protocol <number>` API or use native complex types, like
134134
:c:expr:`double complex`.
135135
136136

Doc/extending/first-extension-module.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Then, create ``meson.build`` containing the following:
164164
165165
.. note::
166166

167-
See `meson-python documentation <meson-python>`_ for details on
167+
See `meson-python documentation`_ for details on
168168
configuration.
169169

170170
Now, build install the *project in the current directory* (``.``) via ``pip``:
@@ -183,6 +183,7 @@ the compiler, which is often useful during development.
183183
(Or, if you prefer another tool that can build and install
184184
``pyproject.toml``-based projects, use that.)
185185

186+
.. _meson-python documentation: meson-python_
186187
.. _meson-python: https://mesonbuild.com/meson-python/
187188
.. _virtual environment: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments
188189

0 commit comments

Comments
 (0)