Skip to main content

Sphinx theme for PennyLane open-source Python packages

Project description

The PennyLane Sphinx Theme is a Sphinx theme used for open-source PennyLane software projects hosted on https://pennylane.ai. It extends the Xanadu Sphinx Theme with PennyLane-specific default settings and configurations.

To update the PennyLane navigation bar (navbar) and footer, please see the files pennylane_sphinx_theme/footer.py and pennylane_sphinx_theme/navbar.py.

For more details, please see the Xanadu Sphinx Theme documentation.

Installation

The PennyLane Sphinx Theme requires Python 3.7 or later. The latest version of the theme can be installed directly using pip:

pip install pennylane-sphinx-theme

Getting Started

Once installed, simply add or modify the following variables of your Sphinx conf.py configuration file to start using the PennyLane Sphinx Theme:

from pennylane_sphinx_theme import templates_dir
templates_path = [templates_dir()]

html_theme = "pennylane"

html_theme_options = {
    "navbar_name": "Example Project"
}

Configuration

The PennyLane Sphinx Theme supports the same configration options as the Xanadu Sphinx Theme. For more details, please see the Xanadu Sphinx Theme documentation.

Directives

The PennyLane Sphinx Theme provides various directives.

For more details, please see the Xanadu Sphinx Theme documentation.

Release

  1. Make a PR with the desired changes to the PST (pennylane-sphinx-theme).
    • Don’t forget to update the CHANGELOG!

    • Merge in your PR once it is approved.

  2. Prepare the PST for release.
    • Once PR is merged it will trigger the Pre-Release Version Bump workflow.

    • The workflow will open a PR Pre-release version bump to X.Y.Z. Adjust the release version number as necessary.

    • Merge in the Pre-release version bump to X.Y.Z PR.

  3. Release a new version of the PST.
    • Once Pre-release version bump to X.Y.Z PR is merged in it will automatically create new release of PST.

    • It will also run the Post-Release Version Bump workflow.

    • The workflow will open a Post-release version bump to X.Y.Z PR that can be merged in master to increment the version for next release.

Support

If you are having issues, please let us know by posting the issue on our Github issue tracker.

License

The PennyLane Sphinx Theme is free and open source, released under the Apache License, Version 2.0.

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

pennylane_sphinx_theme-0.29.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

pennylane_sphinx_theme-0.29.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file pennylane_sphinx_theme-0.29.0.tar.gz.

File metadata

  • Download URL: pennylane_sphinx_theme-0.29.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pennylane_sphinx_theme-0.29.0.tar.gz
Algorithm Hash digest
SHA256 a7f00e264f641371ee0b3194ad0ec9d138a1f806a19be6510dbfae05b67e8ea3
MD5 8bd71c8f621cd8013a5c7c09b21ea38b
BLAKE2b-256 4c3ed9f6cbf934d438b9bbab0ba68b92134abe3debfbc8796b4b5bad0eade7d3

See more details on using hashes here.

File details

Details for the file pennylane_sphinx_theme-0.29.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pennylane_sphinx_theme-0.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 007bb12051b68b6cc23e8257efffadbfed44416f0887ff239617cb1068ac8867
MD5 7ecf7f9e7c0e909eb4c5d51bd32d4e52
BLAKE2b-256 aa7018d2b75a54c1edd035314d1129cbc519cc994c0e7e1314166325ffd4bd25

See more details on using hashes here.

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