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.
Support
Source Code: https://github.com/XanaduAI/pennylane-sphinx-theme
Issue Tracker: https://github.com/XanaduAI/pennylane-sphinx-theme/issues
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pennylane-sphinx-theme-0.6.0.tar.gz
.
File metadata
- Download URL: pennylane-sphinx-theme-0.6.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec2c11d6abe6fd4a74105d66a391139017ab5844f48b264b62cc56417eeaddc |
|
MD5 | 8b38555663b62590aebb24ff4838f237 |
|
BLAKE2b-256 | a1ee2cf9a92d7f90a59ac4a8909cbc74b79ffd2f6f1ef03b748bfc6bd5f48487 |
File details
Details for the file pennylane_sphinx_theme-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: pennylane_sphinx_theme-0.6.0-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77338afe7710e98aaed002c9ae1d7bda5e8c27c5d4eb8e5e9214b6283c541347 |
|
MD5 | bed047378c46b859cdbf020a7f169f80 |
|
BLAKE2b-256 | 42996557f89a4de28640aad28477a7ae6b1190f537d03445eaa4cf61eb3586e9 |