PyData Sphinx Theme

0.17.0 · active · verified Fri Apr 10

The PyData Sphinx Theme is a clean, three-column, Bootstrap-based Sphinx theme designed for the PyData community. It provides a modern, responsive design with built-in light/dark mode toggling and extensive customization options via `html_theme_options`. Currently at version 0.17.0, the project maintains a regular release cadence, with new versions published frequently (typically monthly or upon significant feature additions/bug fixes).

Warnings

Install

Imports

Quickstart

To use the PyData Sphinx Theme, set `html_theme = "pydata_sphinx_theme"` in your `conf.py`. All theme-specific customizations are managed through the `html_theme_options` dictionary. This example also shows how to add an icon link and customize the footer.

# conf.py
import os
import sys

project = 'My Awesome Project'
copyright = '2026, My Team'
author = 'My Team'
release = '0.1'

html_theme = "pydata_sphinx_theme"

html_theme_options = {
    "icon_links": [
        {
            "name": "GitHub",
            "url": "https://github.com/my-org/my-project",
            "icon": "fa-brands fa-github",
            "type": "fontawesome",
        }
    ],
    "navbar_persistent": [], # Remove 'search' from persistent navbar
    "show_prev_next": False,
    "switcher": {
        "version_match": "latest",
    },
    "footer_start": ["copyright"],
}

html_static_path = ['_static']
html_css_files = ['custom.css'] # Example for custom CSS

view raw JSON →