This project has been archived by its maintainers, and is no longer receiving any updates.
Pietro Albini’s Sphinx themes
This repository contains the source code of my own base Sphinx theme, released under the MIT license. Feel free to include it in your projects, even if I ask you to customize them a little bit in order to avoid users confusion.
How to use the theme in your projects
The package itself provides an utility function to get the absolute path of the theme’s directory. So, you can put this simple snippet in your documentation’s conf.py:
import pietroalbini_sphinx_themes html_theme_path = [pietroalbini_sphinx_themes.themes_path()] html_theme = "pietroalbini"
You don’t need to provide a Pygments style, because the whole highlightling thing is handled by the theme itself.
Customizing the theme
It’s recommended to customize the theme when you use it, because even changing the titles’ font and links’ color will give to your documentation an unique feel.
The easiest way to customize it is to create a theme which inherits from the main one, and changing the options:
[theme] inherit = pietroalbini [options] accent_color = #004dc2 night_accent_color = #5c9dff titles_font = DejaVu
Then you can put in your stylesheet other customizations you want to apply, and the code to import the font you want to use for the titles.
Available theme options
Here there is a list of all the available theme options:
accent_color: the main color used by the theme, for links and keywords in the code boxes
night_accent_color: the same as accent_color, but used in the night (dark) mode
titles_font: name of the font used in titles and headings
Metadata
Release files for pietroalbini-sphinx-themes 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pietroalbini-sphinx-themes-1.3.1.tar.gz | 1.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pietroalbini_sphinx_themes-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.6 MB
Release files / pietroalbini-sphinx-themes-1.3.1.tar.gz
| Download URL | pietroalbini-sphinx-themes-1.3.1.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6b9cc32f964a229508e0f2adc4b5e5461452372107a1560da8a351dc73574af
|
|
BLAKE2b-256 checksum How to use checksums |
506cf879dcc7058ba2f8ece03882a1003a4dffae1df171ded3bd593c1aeced99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pietroalbini_sphinx_themes-1.3.1-py3-none-any.whl
| Download URL | pietroalbini_sphinx_themes-1.3.1-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44a0b7f8edc572838e69eb9b3cb2f91ffd9ade57924b7c2a33d673c6db523a3c
|
|
BLAKE2b-256 checksum How to use checksums |
11d3cd5370fbbb49be351fd896dba7c83f0f0afe67023d2eac854dbbb5fd951e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pietroalbini-sphinx-themes 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.