From 796a88f59c40ebe8cd6fabf363897a6bf6979e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Tue, 4 Jun 2024 17:53:45 -0700 Subject: [PATCH] Change docs theme to PyData Sphinx theme --- docs/conf.py | 3 +-- docs/index.rst | 5 ----- pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 132f4da544..2eb7d467ec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,7 +55,6 @@ def setup(app): 'sphinx.ext.viewcode', 'sphinx.ext.githubpages', 'sphinx.ext.intersphinx', - 'sphinx_rtd_theme', 'sphinxcontrib.bibtex', 'sphinx.ext.napoleon', 'sphinx_click.ext', @@ -243,7 +242,7 @@ def setup(app): # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'sphinx_rtd_theme' +html_theme = 'pydata_sphinx_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/docs/index.rst b/docs/index.rst index fbb5bf9925..4f71a891aa 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -22,11 +22,6 @@ release-notes contributors -.. raw:: html - - View me on GitHub - - .. raw:: html

Warning: This is a development version. The latest stable version is at ReadTheDocs.

diff --git a/pyproject.toml b/pyproject.toml index 6b53e2b5bc..52ae121b8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,7 +118,7 @@ docs = [ "sphinx>=7.0.0", # c.f. https://github.com/scikit-hep/pyhf/pull/2271 "sphinxcontrib-bibtex>=2.1", "sphinx-click", - "sphinx-rtd-theme>=1.3.0", # c.f. https://github.com/scikit-hep/pyhf/pull/2271 + "pydata-sphinx-theme>=0.15.3", "nbsphinx!=0.8.8", # c.f. https://github.com/spatialaudio/nbsphinx/issues/620 "ipywidgets", "sphinx-issues",