ccpbiosim-sphinx-theme#

CCPBioSim logo CCPBioSim logo

Sphinx theme for CCPBioSim documentation

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

📄 Example Page

Code, tables, tabs and other content using the theme.

Example Page
💻 Source Code

The theme repository on GitHub.

https://github.com/CCPBioSim/ccpbiosim-sphinx-theme
🌐 CCPBioSim

The main CCPBioSim website.

https://www.ccpbiosim.org/

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"}

The banner at the top of this page is added with:

.. 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