GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python_rtd_theme/docs/installing.rst at master · python-sidebar/python_rtd_theme

Expand file tree

/

installing.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
58 lines (36 loc) · 1.96 KB
/

installing.rst

Copy path

File metadata and controls

58 lines (36 loc) · 1.96 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Installation

How to install and use the theme

Install the sphinx_rtd_theme package (or add it to your requirements.txt file):

$ pip install sphinx_rtd_theme

In your Sphinx project's conf.py file, add sphinx_rtd_theme to the list of enabled extensions and as the active theme:

extensions = [
    ...
    'sphinx_rtd_theme',
]

html_theme = "sphinx_rtd_theme"
.. seealso::
    :ref:`supported-browsers`
        Officially supported and tested browser/operating system combinations

    :ref:`supported-dependencies`
        Officially Supported versions of Python, Sphinx, and other dependencies.


Note

Adding this theme as an extension activates the sphinxcontrib-jquery extension, which is required for search, smooth scrolling, and the flyout menu. If any of these features don't work, make sure you have the theme declared in your extensions.

How to upgrade

Adding sphinx-rtd-theme to your project's dependencies will make pip install the latest compatible version of the theme.

If you want to test a pre-release, you need to be explicit about the version you specify. Otherwise, pip will ignore pre-releases. Add for instance sphinx-rtd-theme==1.1.0b3 to test a pre-release.

Tip

We recommend that you pin the version of Sphinx that your project is built with. We won't release sphinx-rtd-theme without marking its compatibility with Sphinx. So if you do not pin sphinx-rtd-theme itself, you will always get the latest compatible release.

More information is available in Read the Docs' documentation on :doc:`rtd:guides/reproducible-builds`.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.