From 16e99014d9cc9982148e3ed21b892b52b4eeede0 Mon Sep 17 00:00:00 2001 From: Nico Albers Date: Mon, 9 Jan 2023 20:37:55 +0100 Subject: [PATCH] ENH: split doc generation to avoid sphinx-design requiring nonnewest sphinx version (#1099) --- docs/conf.py | 2 +- pyproject.toml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 6872a4371..7bf45aa35 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -8,7 +8,7 @@ # -- Project information ----------------------------------------------------- project = "PyData Theme" -copyright = "2019, PyData Community" +copyright = "2023, PyData Community" author = "PyData Community" import pydata_sphinx_theme diff --git a/pyproject.toml b/pyproject.toml index 5a248f33d..660163c0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ classifiers = [ ] [project.optional-dependencies] -doc = [ +doc_base = [ "numpydoc", "myst-nb", "linkify-it-py", # for link shortening @@ -61,22 +61,25 @@ doc = [ "numpy", "xarray", "sphinx-copybutton", - "sphinx-design", "sphinx-togglebutton", + "ipyleaflet", +] +doc = [ + "sphinx-design", # Install nbsphinx in case we want to test it locally even though we can't load # it at the same time as MyST-NB. "nbsphinx", - "ipyleaflet", + "pydata-sphinx-theme[doc_base]" ] test = [ "pytest", - "pydata-sphinx-theme[doc]", + "pydata-sphinx-theme[doc_base]", ] coverage = [ "pytest-cov", "codecov", "colorama", - "pydata-sphinx-theme[test]", + "pydata-sphinx-theme[doc]", ] dev = [ "pyyaml",