sphinx-rtd-theme/README.rst

75 lines
2.7 KiB
ReStructuredText
Raw Normal View History

2022-11-08 10:19:46 +08:00
**************************
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
2024-05-07 10:45:48 +08:00
:alt: Pypi Version
.. image:: https://circleci.com/gh/readthedocs/sphinx_rtd_theme.svg?style=svg
2022-11-08 10:19:46 +08:00
:alt: Build Status
2024-05-07 10:45:48 +08:00
:target: https://circleci.com/gh/readthedocs/sphinx_rtd_theme
2022-11-08 10:19:46 +08:00
.. 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
2024-05-07 10:45:48 +08:00
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`_
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
.. _Sphinx: http://www.sphinx-doc.org
.. _Read the Docs: http://www.readthedocs.org
.. _theme documentation: https://sphinx-rtd-theme.readthedocs.io/en/stable/
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
Installation
============
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
This theme is distributed on PyPI_ and can be installed with ``pip``:
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
.. code:: console
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
$ pip install sphinx-rtd-theme
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
To use the theme in your Sphinx project, you will need to edit
your ``conf.py`` file's ``html_theme`` setting:
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
.. code:: python
html_theme = "sphinx_rtd_theme"
.. admonition:: See also:
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
`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/
2022-11-08 10:19:46 +08:00
Configuration
=============
2024-05-07 10:45:48 +08:00
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`_.
2022-11-08 10:19:46 +08:00
2024-05-07 10:45:48 +08:00
.. _configuring the theme: https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html
2022-11-08 10:19:46 +08:00
Contributing
============
2024-05-07 10:45:48 +08:00
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