| 1 |
************ |
| 2 |
Installation |
| 3 |
************ |
| 4 |
|
| 5 |
.. note:: |
| 6 |
|
| 7 |
Each pydata-sphinx-theme release has a minimum required Sphinx version, |
| 8 |
which should be automatically handled by your package installer. |
| 9 |
It is also tested against newer versions of Sphinx that were available |
| 10 |
prior to that release of the pydata-sphinx-theme package. |
| 11 |
If you run into issues when trying to use a more recent version of Sphinx, |
| 12 |
please open an issue here: https://github.com/pydata/pydata-sphinx-theme/issues |
| 13 |
|
| 14 |
The theme is available on PyPI and conda-forge, and can thus be installed with: |
| 15 |
|
| 16 |
.. code:: console |
| 17 |
|
| 18 |
$ pip install pydata-sphinx-theme |
| 19 |
|
| 20 |
.. code:: console |
| 21 |
|
| 22 |
$ conda install pydata-sphinx-theme --channel conda-forge |
| 23 |
|
| 24 |
Then, in the ``conf.py`` of your sphinx docs, you update the ``html_theme`` |
| 25 |
configuration option: |
| 26 |
|
| 27 |
.. code:: python |
| 28 |
|
| 29 |
html_theme = "pydata_sphinx_theme" |
| 30 |
|
| 31 |
.. note:: |
| 32 |
|
| 33 |
This theme may not work with the latest major versions of Sphinx, especially |
| 34 |
if they have only recently been released. Please give us a few months of |
| 35 |
time to work out any bugs and changes when new releases are made. |
| 36 |
|
| 37 |
Development version |
| 38 |
=================== |
| 39 |
|
| 40 |
If you want to track the development version of the theme, you can |
| 41 |
install it from the git repo: |
| 42 |
|
| 43 |
.. code:: console |
| 44 |
|
| 45 |
$ pip install git+https://github.com/pydata/pydata-sphinx-theme.git@main |
| 46 |
|
| 47 |
or in a conda environment yml file, you can add: |
| 48 |
|
| 49 |
.. code:: yaml |
| 50 |
|
| 51 |
- pip: |
| 52 |
- git+https://github.com/pydata/pydata-sphinx-theme.git@main |
| 53 |
|
| 54 |
.. meta:: |
| 55 |
:description lang=en: |
| 56 |
Detailed instructions for installing pydata-sphinx-theme. |