Skip to main content

ccpbiosim-sphinx-theme

Category Badges
Build PR Checks Weekly Tests
Documentation Weekly Docs Docs - Status
PyPI PyPI - Version PyPI - Python Version
Quality Coverage Status

The Sphinx theme used across CCPBioSim projects. It is built on pydata-sphinx-theme and uses the same colours as ccpbiosim.org.

An example site using the theme is available at ccpbiosim-sphinx-theme.readthedocs.io.

Installation

Add the theme to your docs requirements:

ccpbiosim-sphinx-theme>=1.0,<2.0

Usage

Set the theme in conf.py:

html_theme = "ccpbiosim_sphinx_theme"
html_context = {"github_repo": "my-project"}

This adds the CCPBioSim header, footer and colours, the GitHub link and the "Edit on GitHub" buttons. sphinx-design and sphinx-copybutton are enabled by the theme, so they do not need adding to extensions.

If conf.py is in docs/ rather than docs/source/, also set "doc_path": "docs" in html_context. Anything set in html_theme_options or html_context takes priority over the theme defaults.

To add a banner to the home page, put this under the page title:

.. ccpbiosim-hero::
   :logo-light: _static/logo-black-text.svg
   :logo-dark: _static/logo-white-text.svg
   :tagline: A short description of the project
   :button: installation | Get started
   :github: CCPBioSim/my-project

The logo changes with light and dark mode. To use a single logo on a dark navy banner instead, use :logo: with a logo that has white text.

Development

pip install -e ".[testing,pre-commit]"
pytest

Releasing

Releases are made by running the Release ccpbiosim-sphinx-theme workflow from the Actions tab. This updates the version, tags the release and publishes it to PyPI.

Projects use any 1.x release automatically, so use a minor or patch release for changes that should reach every project. Use a new major version for changes that need projects to update their conf.py.

Contact Information

For questions or problems, please contact CCPBIOSIM@stfc.ac.uk.

Metadata

Release files for ccpbiosim-sphinx-theme 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccpbiosim-sphinx-theme 1.3.2
File Size Uploaded Provenance Actions
ccpbiosim_sphinx_theme-1.3.2.tar.gz 208.6 kB Without provenance Details for ccpbiosim_sphinx_theme-1.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ccpbiosim-sphinx-theme 1.3.2
File Interpreter ABI Platform Actions
ccpbiosim_sphinx_theme-1.3.2-py3-none-any.whl Python 3 none any Details for ccpbiosim_sphinx_theme-1.3.2-py3-none-any.whl

Total release size: 418.7 kB

Release files / ccpbiosim_sphinx_theme-1.3.2.tar.gz

Download URL ccpbiosim_sphinx_theme-1.3.2.tar.gz
Size 208.6 kB
Tags Source
SHA-256 checksum
How to use checksums
27246d2f1584c1093b7ac22f0d6e2f270900038edd85deb27329dedce73d3648
BLAKE2b-256 checksum
How to use checksums
25e47dec9907237b0cd560f92168a8c57232c6a3fa4190a707b40c595765e8c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / ccpbiosim_sphinx_theme-1.3.2-py3-none-any.whl

Download URL ccpbiosim_sphinx_theme-1.3.2-py3-none-any.whl
Size 210.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87f3b8e83eca473954ed4af519394748256da26dcd832291cdf04c1296e1163f
BLAKE2b-256 checksum
How to use checksums
4b8480c811728fa8627d6ae3e51eefec9ac2efc9d7a1bf24bf771f1b000d4e7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Security for ccpbiosim-sphinx-theme 1.3.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page