Read the Docs Sphinx Theme

3.1.0 · active · verified Sun Apr 05

The `sphinx-rtd-theme` is the official Sphinx theme for Read the Docs, designed to provide an excellent reading experience for documentation users on both desktop and mobile devices. It is widely adopted across many open-source projects. The current version is 3.1.0, and it maintains an active development and release cadence.

Warnings

Install

Imports

Quickstart

After installing the theme, update your Sphinx project's `conf.py` file to specify `sphinx_rtd_theme` as the `html_theme` and add `sphinx_rtd_theme` to your `extensions` list. Then, build your Sphinx documentation.

# First, create a Sphinx project if you don't have one:
# sphinx-quickstart

# In your project's conf.py file:
# ------------------------------
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

project = 'My Awesome Project'
copyright = '2026, Your Name'
author = 'Your Name'
release = '0.1.0'

extensions = [
    'sphinx_rtd_theme'
]

html_theme = "sphinx_rtd_theme"

# To build the documentation (run from your project root):
# -------------------------------------------------------
# make html
# or
# sphinx-build -b html . _build

view raw JSON →