Skip to content

Commit ac4df5a

Browse files
nicoadrammock
authored andcommitted
ENH: split doc generation to avoid sphinx-design requiring nonnewest sphinx version (pydata#1099)
1 parent 4ce02b8 commit ac4df5a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# -- Project information -----------------------------------------------------
99

1010
project = "PyData Theme"
11-
copyright = "2019, PyData Community"
11+
copyright = "2023, PyData Community"
1212
author = "PyData Community"
1313

1414
import pydata_sphinx_theme

pyproject.toml

+8-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ classifiers = [
4343
]
4444

4545
[project.optional-dependencies]
46-
doc = [
46+
doc_base = [
4747
"numpydoc",
4848
"myst-nb",
4949
"linkify-it-py", # for link shortening
@@ -61,22 +61,25 @@ doc = [
6161
"numpy",
6262
"xarray",
6363
"sphinx-copybutton",
64-
"sphinx-design",
6564
"sphinx-togglebutton",
65+
"ipyleaflet",
66+
]
67+
doc = [
68+
"sphinx-design",
6669
# Install nbsphinx in case we want to test it locally even though we can't load
6770
# it at the same time as MyST-NB.
6871
"nbsphinx",
69-
"ipyleaflet",
72+
"pydata-sphinx-theme[doc_base]"
7073
]
7174
test = [
7275
"pytest",
73-
"pydata-sphinx-theme[doc]",
76+
"pydata-sphinx-theme[doc_base]",
7477
]
7578
coverage = [
7679
"pytest-cov",
7780
"codecov",
7881
"colorama",
79-
"pydata-sphinx-theme[test]",
82+
"pydata-sphinx-theme[doc]",
8083
]
8184
dev = [
8285
"pyyaml",

0 commit comments

Comments
 (0)