Skip to content

Commit ecfb335

Browse files
committed
Address docs review comments
1 parent 97b401b commit ecfb335

5 files changed

Lines changed: 4 additions & 14 deletions

File tree

cuda_bindings/docs/source/conf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,8 @@ def autodoc_process_docstring(app, what, name, obj, options, lines):
148148

149149

150150
def rewrite_source(app, docname, source):
151-
text = source[0]
152-
text = text.replace("|cuda_bindings_github_ref|", GITHUB_EXAMPLES_REF)
153-
154151
if docname.startswith("release/"):
155-
text = text.replace(".. module:: cuda.bindings\n\n", "", 1)
156-
157-
source[0] = text
152+
source[0] = source[0].replace(".. module:: cuda.bindings\n\n", "", 1)
158153

159154

160155
suppress_warnings = [

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/issues/1336>`_)
34+
(`PR #1451 <https://github.com/NVIDIA/cuda-python/pull/1451>`_)
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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/issues/1321>`_)
15+
(`PR #1337 <https://github.com/NVIDIA/cuda-python/pull/1337>`_)
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/issues/1336>`_)
42+
(`PR #1451 <https://github.com/NVIDIA/cuda-python/pull/1451>`_)
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

cuda_core/docs/source/conf.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,6 @@ def skip_member(app, what, name, obj, skip, options):
192192
return None
193193

194194

195-
def rewrite_source(app, docname, source):
196-
source[0] = source[0].replace("|cuda_core_github_ref|", GITHUB_EXAMPLES_REF)
197-
198-
199195
def setup(app):
200196
app.connect("autodoc-process-docstring", autodoc_process_docstring)
201197
app.connect("autodoc-skip-member", skip_member)
202-
app.connect("source-read", rewrite_source)

0 commit comments

Comments
 (0)