Skip to content

Commit 5307eec

Browse files
Copilotleofang
andauthored
Convert all markdown files in docs/source/ directories to reST (#897)
* Initial plan * Phase 1: Use git mv to rename 38 markdown files to .rst preserving git history Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Phase 2: Convert markdown syntax to ReST syntax in all 38 files Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Phase 3: Update toctree references from .md to .rst Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Phase 4: Add pre-commit hook to prevent new markdown files in docs/source/ Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Phase 5: Fix MyST syntax issues and validate conversion Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Fix SPDX headers: Add missing copyright and license identifiers to converted .rst files Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Fix reStructuredText issues: correct cross-refs, links, and code blocks Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Fix code block consistency and Python comments in documentation - Changed shell to console code-block in install.rst for consistency - Converted explanatory text to Python comments in overview.rst code blocks - Ensures all code blocks are copy-paste ready for execution Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Fix reStructuredText syntax errors: correct toctree directive, broken hyperlinks, and code block formatting Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Fix release.rst toctree titles and improve pre-commit hook message Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * Fix reStructuredText rendering issues: hyperlinks, code block introductions, and syntax errors Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> * manual edit to fix rendering errors and prune outdated files --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: leofang <5534781+leofang@users.noreply.github.com> Co-authored-by: Leo Fang <leof@nvidia.com>
1 parent e3a9f22 commit 5307eec

68 files changed

Lines changed: 1641 additions & 1369 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ repos:
3030
language: python
3131
additional_dependencies:
3232
- https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl
33+
34+
- id: no-markdown-in-docs-source
35+
name: Prevent markdown files in docs/source directories
36+
entry: bash -c
37+
args: ['if find . -path "*/docs/source/*.md" -not -path "./docs/README.md" | grep -q .; then echo "ERROR: Markdown files found in docs/source/ directories. Use reST (.rst) instead."; exit 1; fi']
38+
language: system
39+
pass_filenames: false
40+
always_run: true
3341

3442
- repo: https://github.com/PyCQA/bandit
3543
rev: 2d0b675b04c80ae42277e10500db06a0a37bae17 # frozen: 1.8.6
-49.4 KB
Binary file not shown.
-47.7 KB
Binary file not shown.
Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
# Code of Conduct
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
23
3-
## Overview
4+
Code of Conduct
5+
===============
46

5-
Define the code of conduct followed and enforced for the `cuda.core` project.
7+
Overview
8+
--------
69

7-
## Our Pledge
10+
Define the code of conduct followed and enforced for the ``cuda.bindings`` project.
11+
12+
Our Pledge
13+
----------
814

915
In the interest of fostering an open and welcoming environment, we as
1016
contributors and maintainers pledge to making participation in our project and
@@ -13,7 +19,8 @@ size, disability, ethnicity, sex characteristics, gender identity and expression
1319
level of experience, education, socio-economic status, nationality, personal
1420
appearance, race, religion, or sexual identity and orientation.
1521

16-
## Our Standards
22+
Our Standards
23+
-------------
1724

1825
Examples of behavior that contributes to creating a positive environment
1926
include:
@@ -35,7 +42,8 @@ Examples of unacceptable behavior by participants include:
3542
* Other conduct which could reasonably be considered inappropriate in a
3643
professional setting
3744

38-
## Our Responsibilities
45+
Our Responsibilities
46+
--------------------
3947

4048
Project maintainers are responsible for clarifying the standards of acceptable
4149
behavior and are expected to take appropriate and fair corrective action in
@@ -47,7 +55,8 @@ that are not aligned to this Code of Conduct, or to ban temporarily or
4755
permanently any contributor for other behaviors that they deem inappropriate,
4856
threatening, offensive, or harmful.
4957

50-
## Scope
58+
Scope
59+
-----
5160

5261
This Code of Conduct applies both within project spaces and in public spaces
5362
when an individual is representing the project or its community. Examples of
@@ -56,11 +65,12 @@ address, posting via an official social media account, or acting as an appointed
5665
representative at an online or offline event. Representation of a project may be
5766
further defined and clarified by project maintainers.
5867

59-
## Enforcement
68+
Enforcement
69+
-----------
6070

6171
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6272
reported by contacting the project team at
63-
[cuda-python-conduct@nvidia.com](mailto:cuda-python-conduct@nvidia.com) All
73+
`cuda-python-conduct@nvidia.com <mailto:cuda-python-conduct@nvidia.com>`_ All
6474
complaints will be reviewed and investigated and will result in a response that
6575
is deemed necessary and appropriate to the circumstances. The project team is
6676
obligated to maintain confidentiality with regard to the reporter of an
@@ -71,12 +81,11 @@ Project maintainers who do not follow or enforce the Code of Conduct in good
7181
faith may face temporary or permanent repercussions as determined by other
7282
members of the project's leadership.
7383

74-
## Attribution
84+
Attribution
85+
-----------
7586

76-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
87+
This Code of Conduct is adapted from the `Contributor Covenant <https://www.contributor-covenant.org>`_, version 1.4,
7788
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
7889

79-
[homepage]: https://www.contributor-covenant.org
80-
8190
For answers to common questions about this code of conduct, see
8291
https://www.contributor-covenant.org/faq

cuda_bindings/docs/source/contribute.md

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
3+
4+
Contributing
5+
============
6+
7+
Thank you for your interest in contributing to ``cuda-bindings``! Based on the type of contribution, it will fall into two categories:
8+
9+
1. You want to report a bug, feature request, or documentation issue
10+
- File an `issue <https://github.com/NVIDIA/cuda-python/issues/new/choose>`_ describing what you encountered or what you want to see changed.
11+
- The NVIDIA team will evaluate the issues and triage them, scheduling
12+
them for a release. If you believe the issue needs priority attention
13+
comment on the issue to notify the team.
14+
2. You want to implement a feature, improvement, or bug fix:
15+
- At this time we do not accept code contributions.

cuda_bindings/docs/source/environment_variables.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
3+
4+
Environment Variables
5+
=====================
6+
7+
Runtime Environment Variables
8+
-----------------------------
9+
10+
- ``CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM`` : When set to 1, the default stream is the per-thread default stream. When set to 0, the default stream is the legacy default stream. This defaults to 0, for the legacy default stream. See `Stream Synchronization Behavior <https://docs.nvidia.com/cuda/cuda-runtime-api/stream-sync-behavior.html>`_ for an explanation of the legacy and per-thread default streams.
11+
12+
13+
Build-Time Environment Variables
14+
--------------------------------
15+
16+
- ``CUDA_HOME`` or ``CUDA_PATH``: Specifies the location of the CUDA Toolkit.
17+
18+
- ``CUDA_PYTHON_PARSER_CACHING`` : bool, toggles the caching of parsed header files during the cuda-bindings build process. If caching is enabled (``CUDA_PYTHON_PARSER_CACHING`` is True), the cache path is set to ./cache_<library_name>, where <library_name> is derived from the cuda toolkit libraries used to build cuda-bindings.
19+
20+
- ``CUDA_PYTHON_PARALLEL_LEVEL`` (previously ``PARALLEL_LEVEL``) : int, sets the number of threads used in the compilation of extension modules. Not setting it or setting it to 0 would disable parallel builds.
21+

cuda_bindings/docs/source/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
:caption: Contents:
1010

1111
release
12-
install.md
13-
overview.md
14-
motivation.md
15-
environment_variables.md
12+
install
13+
overview
14+
motivation
15+
environment_variables
1616
api
1717
tips_and_tricks
1818
support
19-
contribute.md
20-
conduct.md
19+
contribute
20+
conduct
2121
license
2222

2323

cuda_bindings/docs/source/install.md

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)