Sphinx extension for linking to VTK class documentation.
Project description
vtk-xref is a Sphinx extension for linking directly to VTK’s documentation using the :vtk: reference role.
Installation
Add vtk-xref as a project dependency or install it with:
pip install vtk-xrefAdd vtk_xref as an extension in your conf.py file used by Sphinx:
extensions = [
...,
'vtk_xref',
]
Usage
Add links to VTK class documentation with the :vtk: role. For example, write :vtk:`vtkImageData` in docstrings to link directly to the vtkImageData documentation. This will render as vtkImageData.
Link directly to class members such as methods or enums. For example, write :vtk:`vtkImageData.GetSpacing` to link directly to the GetSpacing method. This will render as vtkImageData.GetSpacing.
Use ~ to shorten the title for the link and only show the class member after the period. For example, :vtk:`~vtkImageData.GetSpacing` will render as GetSpacing.
Provide a custom title for the reference. For example, :vtk:`Get Image Spacing <vtkImageData.GetSpacing>` will render as Get Image Spacing
Notes
The URLs linking to the VTK documentation are checked to ensure they are valid references. A warning is emitted if the reference is invalid, but the role will still try to point to a valid URL where possible. It is recommended to set nitpicky=True in conf.py when using this extension to ensure all links are valid and correct.
The role does not currently support linking to nested members. For example, linking to an enum member with :vtk:`vtkCommand.EventIds` works, but linking to a specific enum value with :vtk:`vtkCommand.EventIds.PickEvent` does not.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vtk_xref-0.1.2.tar.gz.
File metadata
- Download URL: vtk_xref-0.1.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
504b7079feb1a26248a089919e9d219fa1e6c867f93656cb3761e663f95b1872
|
|
| MD5 |
9202ec4a915fcec531ab55dcc2a98869
|
|
| BLAKE2b-256 |
fe68f17312538beb3e7cf0c8b3528f26a53104b408e11a29d0cfe1c191ab1b7d
|
Provenance
The following attestation bundles were made for vtk_xref-0.1.2.tar.gz:
Publisher:
test-and-release.yml on pyvista/vtk-xref
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vtk_xref-0.1.2.tar.gz -
Subject digest:
504b7079feb1a26248a089919e9d219fa1e6c867f93656cb3761e663f95b1872 - Sigstore transparency entry: 1367290404
- Sigstore integration time:
-
Permalink:
pyvista/vtk-xref@d2dd9bc5486e7e2721cbe7e7fe1fecb8561053bb -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/pyvista
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-and-release.yml@d2dd9bc5486e7e2721cbe7e7fe1fecb8561053bb -
Trigger Event:
push
-
Statement type:
File details
Details for the file vtk_xref-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vtk_xref-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6de530fa85276e00b3b6efa1f4e45ea3360a5e18e3524b6323fd3adcf903358
|
|
| MD5 |
9e4c9291a72f5cdc4498fee852d5b59a
|
|
| BLAKE2b-256 |
7e22d294f6f0992c41385fe4f79392158b63ac3d86c1874a823fed8e878a267f
|
Provenance
The following attestation bundles were made for vtk_xref-0.1.2-py3-none-any.whl:
Publisher:
test-and-release.yml on pyvista/vtk-xref
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vtk_xref-0.1.2-py3-none-any.whl -
Subject digest:
d6de530fa85276e00b3b6efa1f4e45ea3360a5e18e3524b6323fd3adcf903358 - Sigstore transparency entry: 1367290413
- Sigstore integration time:
-
Permalink:
pyvista/vtk-xref@d2dd9bc5486e7e2721cbe7e7fe1fecb8561053bb -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/pyvista
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-and-release.yml@d2dd9bc5486e7e2721cbe7e7fe1fecb8561053bb -
Trigger Event:
push
-
Statement type: