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",
    "navbar_active_link": 3
}

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.

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.5.8.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

pennylane_sphinx_theme-0.5.8-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file pennylane-sphinx-theme-0.5.8.tar.gz.

File metadata

File hashes

Hashes for pennylane-sphinx-theme-0.5.8.tar.gz
Algorithm Hash digest
SHA256 e317dd2536a655b288d4dffed14bacde8c7adb1b455cae2fa371d6c68bd958c9
MD5 5c5a0e0eaa321fd8357a5d9b0820a007
BLAKE2b-256 acf4cd6c6d3d879759978033d68738b44a8c26c895f034bc146c6aca27536fc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_sphinx_theme-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 52d60d84e6b5b7c4328f2f1e9dce5c744d26a236e4591bd14c0dd2d8632b51a5
MD5 a4be5ad9bfc5b1da69a62463d9ab048f
BLAKE2b-256 0168d017c44f0a46c7a8a2bbdcce22e466b4e4cbb321deb18b4d70a40ccfd7c2

See more details on using hashes here.

Supported by

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