Skip to content

Commit dfed512

Browse files
committed
Add lychee docs link checking
1 parent f8328e1 commit dfed512

14 files changed

Lines changed: 41 additions & 21 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ __pycache__/
88

99
# CUDA Python specific
1010
.cache/
11+
.lycheecache
1112
.pytest_cache/
1213
.benchmarks/
1314
*.cpp

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,21 @@ repos:
4242
language: system
4343
files: '^.*/docs/source/.*\.md$'
4444

45+
# Link checking for authored documentation files
46+
- repo: https://github.com/lycheeverse/lychee
47+
rev: lychee-v0.24.2
48+
hooks:
49+
- id: lychee
50+
args:
51+
- LYCHEE_VERSION=0.24.2
52+
- --cache
53+
- --max-concurrency=4
54+
- --max-retries=3
55+
- --no-progress
56+
- --exclude
57+
- '^https://github\.com/NVIDIA/cuda-python/(blob|tree)/$'
58+
files: '\.(md|rst)$'
59+
4560
# Standard hooks
4661
- repo: https://github.com/pre-commit/pre-commit-hooks
4762
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0

cuda_bindings/docs/source/conduct.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44
Code of Conduct
@@ -85,7 +85,7 @@ Attribution
8585
-----------
8686

8787
This Code of Conduct is adapted from the `Contributor Covenant <https://www.contributor-covenant.org>`_, version 1.4,
88-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
88+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct/
8989

9090
For answers to common questions about this code of conduct, see
9191
https://www.contributor-covenant.org/faq

cuda_bindings/docs/source/motivation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44
Motivation
@@ -31,7 +31,7 @@ you get the best of both worlds: rapid iterative development with Python and the
3131
speed of a compiled language targeting both CPUs and NVIDIA GPUs.
3232

3333
`CuPy <https://cupy.dev/>`_ is a
34-
`NumPy <https://numpy.org/>`_/`SciPy <https://www.scipy.org/>`_ compatible Array
34+
`NumPy <https://numpy.org/>`_/`SciPy <https://scipy.org/>`_ compatible Array
3535
library, from `Preferred Networks <https://www.preferred.jp/en/>`_, for
3636
GPU-accelerated computing with Python. CUDA Python simplifies the CuPy build
3737
and allows for a faster and smaller memory footprint when importing the CuPy

cuda_bindings/docs/source/overview.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44
Overview
@@ -38,8 +38,8 @@ The first thing to do is import the `Driver
3838
API <https://docs.nvidia.com/cuda/cuda-driver-api/index.html>`_ and
3939
`NVRTC <https://docs.nvidia.com/cuda/nvrtc/index.html>`_ modules from the ``cuda.bindings``
4040
package. Next, we consider how to store host data and pass it to the device. Different
41-
approaches can be used to accomplish this and are described in `Preparing kernel
42-
arguments <https://nvidia.github.io/cuda-python/cuda-bindings/latest/overview.html#preparing-kernel-arguments>`_.
41+
approaches can be used to accomplish this and are described in
42+
:ref:`Preparing kernel arguments <preparing-kernel-arguments>`.
4343
In this example, we will use NumPy to store host data and pass it to the device, so let's
4444
import this dependency as well.
4545

@@ -308,6 +308,8 @@ maximize performance ({numref}``Figure 1``).
308308

309309
Screenshot of Nsight Compute CLI output of ``cuda.bindings`` example.
310310

311+
.. _preparing-kernel-arguments:
312+
311313
Preparing kernel arguments
312314
--------------------------
313315

cuda_bindings/docs/source/release/11.7.1-notes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44
CUDA Python 11.7.1 Release notes
@@ -14,6 +14,8 @@ Highlights
1414
Limitations
1515
-----------
1616

17+
.. _cuda-bindings-11-7-1-source-builds:
18+
1719
Source builds
1820
^^^^^^^^^^^^^
1921

cuda_bindings/docs/source/release/11.8.0-notes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44
CUDA Python 11.8.0 Release notes
@@ -16,7 +16,7 @@ Highlights
1616
Source Builds
1717
^^^^^^^^^^^^^
1818

19-
CUDA Python source builds now parse CUDA headers located in $CUDA_HOME directory, enabling/disabling types and APIs if defined. Therefore this removes the need for CTK headers to have all types defined. By allowing minor variations, previous `11.7.1 mobile platform workaround <https://nvidia.github.io/cuda-python/release/11.7.1-notes.html#source-builds>`_ is no longer needed.
19+
CUDA Python source builds now parse CUDA headers located in $CUDA_HOME directory, enabling/disabling types and APIs if defined. Therefore this removes the need for CTK headers to have all types defined. By allowing minor variations, previous :ref:`11.7.1 mobile platform workaround <cuda-bindings-11-7-1-source-builds>` is no longer needed.
2020

2121
It's still required that source builds use the latest CTK headers (i.e. “$CUDA_HOME/include” has latest CTK headers).
2222

cuda_bindings/docs/source/release/12.9.6-notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Bugfixes
3131

3232
* Fixed an issue where the ``CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL`` attribute was
3333
retrieved as an unsigned int, rather than a signed int.
34-
(`PR #1336 <https://github.com/NVIDIA/cuda-python/pull/1336>`_)
34+
(`PR #1336 <https://github.com/NVIDIA/cuda-python/issues/1336>`_)
3535
* Fixed a use-after-free in ``_HelperInputVoidPtr`` properties when backed by
3636
Python buffer objects.
3737
(`PR #1629 <https://github.com/NVIDIA/cuda-python/pull/1629>`_)

cuda_bindings/docs/source/release/13.1.1-notes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44
.. module:: cuda.bindings
@@ -12,7 +12,7 @@ Highlights
1212
----------
1313

1414
* Add missing driver & runtime bindings for functions new in CTK 13.1.0
15-
(`PR #1321 <https://github.com/NVIDIA/cuda-python/pull/1321>`_)
15+
(`PR #1321 <https://github.com/NVIDIA/cuda-python/issues/1321>`_)
1616

1717
Experimental
1818
------------

cuda_bindings/docs/source/release/13.2.0-notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Bugfixes
3939

4040
* Fixed an issue where the ``CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL`` attribute was
4141
retrieved as an unsigned int, rather than a signed int.
42-
(`PR #1336 <https://github.com/NVIDIA/cuda-python/pull/1336>`_)
42+
(`PR #1336 <https://github.com/NVIDIA/cuda-python/issues/1336>`_)
4343
* Fixed ABI incompatibility bugs in cuFILE bindings introduced in v13.1.0.
4444
(`PR #1468 <https://github.com/NVIDIA/cuda-python/pull/1468>`_)
4545
* Fixed a use-after-free in ``_HelperInputVoidPtr`` properties when backed by

0 commit comments

Comments
 (0)