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.1.tar.gz (8.0 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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file vtk_xref-0.1.1.tar.gz.

File metadata

  • Download URL: vtk_xref-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 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.1.tar.gz
Algorithm Hash digest
SHA256 784d44e1de760d2ba58be1a9ad8be69d2132c852d10307a77de78ebec249b879
MD5 9e2830b0b2012c36fd7029e988649eda
BLAKE2b-256 4025056f8520c639d881f07cdf9623cedd4441580e6de67ec5882ce7f8624881

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtk_xref-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: vtk_xref-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2926eb2aa1acf53434698eaaff21e8eb701bd47abfecdf2c255757e3ae05c213
MD5 916c05919df49bee43ea0ad6e96dad97
BLAKE2b-256 3445a63e865c52076856a8140f2ba66dca835adaebdafd7dabe7c200cb3c3170

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtk_xref-0.1.1-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