Skip to content
项目

readthedocs/sphinx_rtd_theme has 5,112 GitHub stars and 1,850 forks. GitHot measured -1 stars in 24 hours and +1 in 7 days. Last checked 2026-11-12 10:59 UTC. Last push 2026-01-12.

这些数字如何统计

Sphinx theme from Read the Docs

实测星标增长

24小时
-1
7天
+1
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Read the Docs Sphinx Theme


.. image:: https://img.shields.io/pypi/v/sphinx_rtd_theme.svg :target: https://pypi.python.org/pypi/sphinx_rtd_theme :alt: Pypi Version .. image:: https://circleci.com/gh/readthedocs/sphinx_rtd_theme.svg?style=svg :alt: Build Status :target: https://circleci.com/gh/readthedocs/sphinx_rtd_theme .. image:: https://img.shields.io/pypi/l/sphinx_rtd_theme.svg :target: https://pypi.python.org/pypi/sphinx_rtd_theme/ :alt: License .. image:: https://readthedocs.org/projects/sphinx-rtd-theme/badge/?version=latest :target: http://sphinx-rtd-theme.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

This Sphinx_ theme was designed to provide a great reader experience for documentation users on both desktop and mobile devices. This theme is used primarily on Read the Docs_ but can work with any Sphinx project. You can find a working demo of the theme in the theme documentation_

.. _Sphinx: http://www.sphinx-doc.org .. _Read the Docs: http://www.readthedocs.org .. _theme documentation: https://sphinx-rtd-theme.readthedocs.io/en/stable/

Installation

This theme is distributed on PyPI_ and can be installed with pip:

.. code:: console

$ pip install sphinx-rtd-theme

To use the theme in your Sphinx project, you will need to edit your conf.py file's html_theme setting:

.. code:: python

html_theme = "sphinx_rtd_theme"

.. admonition:: See also:

`Supported browsers`_
    Officially supported and tested browser/operating system combinations

`Supported dependencies`_
    Supported versions of Python, Sphinx, and other dependencies.

`Example documentation`_
    A full example of this theme output, with localized strings enabled.

.. _PyPI: https://pypi.python.org/pypi/sphinx_rtd_theme .. _Supported browsers: https://sphinx-rtd-theme.readthedocs.io/en/stable/development.html#supported-browsers .. _Supported dependencies: https://sphinx-rtd-theme.readthedocs.io/en/stable/development.html#supported-dependencies .. _Example documentation: https://sphinx-rtd-theme.readthedocs.io/en/stable/

Configuration

This theme is highly customizable on both the page level and on a global level. To see all the possible configuration options, read the documentation on configuring the theme_.

.. _configuring the theme: https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html

Contributing

If you would like to help modify or translate the theme, you'll find more information on contributing in our contributing guide_.

.. _contributing guide: https://sphinx-rtd-theme.readthedocs.io/en/stable/contributing.html

探索相关项目