Skip to main content

Sphinx role for linking to PDG reviews and listing

Project description

PDG role for Sphinx

PyPI package Supported Python versions BSD 3-Clause license Open in Visual Studio Code Test coverage CI status pre-commit.ci status Spelling checked code style: prettier Ruff uv ty

This package is a Sphinx extension that makes it easy to refer to PDF files of reviews and particle listings in the PDG.

Installation

Just install through PyPI with pip:

pip install sphinx-hep-pdgref

Next, in your Sphinx configuration file (conf.py), add "sphinx_hep_pdgref" to your extensions:

extensions = [
    # ...
    "sphinx_hep_pdgref",
    # ...
]

Usage

There are two roles, one for the particle listings and one for the review. These roles can be used as follows:

:pdg-listing:`K-zero`

:pdg-review:`Kinematics`

:pdg-review:`2014; Resonances`

:pdg-review:`Resonances; 2018; pp. 2-4, 7`

:pdg-review:`QCD; p5`

:pdg-review:`PDG2015; Quark Model; p.2`

which will render in the HTML pages as:

PDG2020

PDG2020, §Kinematics

PDG2014, §Resonances

PDG2018, §Resonances, pp.2-4,7

PDG2020, §QCD, p.5

PDG2015, §Quark Model, p.2

Note that the resulting links lead to the correct page as well!

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

sphinx_hep_pdgref-0.2.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

sphinx_hep_pdgref-0.2.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_hep_pdgref-0.2.2.tar.gz.

File metadata

  • Download URL: sphinx_hep_pdgref-0.2.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_hep_pdgref-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1257b50628bca25219112fca2ec3a5ab881c82b0cdc50be73eb56b2400c5ec2e
MD5 a2e35fa63ab01161f69e6b6907f3f0d4
BLAKE2b-256 2e376a0e669bec2089db62e78c51900138fa1ea11cc51c8dc1ce433e1cb261af

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_hep_pdgref-0.2.2.tar.gz:

Publisher: cd.yml on ComPWA/sphinx-hep-pdgref

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

File details

Details for the file sphinx_hep_pdgref-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_hep_pdgref-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b990e16ac449f967c2e54cbbeffdc9fda380e4112e9de9aac0fdc0aea285915
MD5 3d1fbbbc7cee735be8e878a0fa25a35d
BLAKE2b-256 721efbdfe0b6131ac0d2b62052f2f44a48c8f02434ce16cef4383fcaad4fe5cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_hep_pdgref-0.2.2-py3-none-any.whl:

Publisher: cd.yml on ComPWA/sphinx-hep-pdgref

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