Skip to main content

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

  1. Add vtk-xref as a project dependency or install it with:

    pip install vtk-xref
  2. Add 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vtk_xref-0.1.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vtk_xref-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for vtk_xref-0.1.2.tar.gz
Algorithm Hash digest
SHA256 504b7079feb1a26248a089919e9d219fa1e6c867f93656cb3761e663f95b1872
MD5 9202ec4a915fcec531ab55dcc2a98869
BLAKE2b-256 fe68f17312538beb3e7cf0c8b3528f26a53104b408e11a29d0cfe1c191ab1b7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtk_xref-0.1.2.tar.gz:

Publisher: test-and-release.yml on pyvista/vtk-xref

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for vtk_xref-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6de530fa85276e00b3b6efa1f4e45ea3360a5e18e3524b6323fd3adcf903358
MD5 9e4c9291a72f5cdc4498fee852d5b59a
BLAKE2b-256 7e22d294f6f0992c41385fe4f79392158b63ac3d86c1874a823fed8e878a267f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page