Skip to content

Commit

Permalink
build(docs): sphinx-rtd-theme not compatible with sphinx>=7
Browse files Browse the repository at this point in the history
  • Loading branch information
engeir committed Apr 18, 2024
1 parent 6d7d93d commit a87322a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def docs_build(session: Session) -> None:
"""
args = session.posargs or ["docs", "docs/_build"]
session.install("-e", ".")
session.install("sphinx", "sphinx-autobuild", "sphinx-rtd-theme")
session.install("sphinx<7", "sphinx-autobuild", "sphinx-rtd-theme")

build_dir = Path("docs", "_build")
if build_dir.exists():
Expand All @@ -212,7 +212,7 @@ def docs(session: Session) -> None:
"""
args = session.posargs or ["--open-browser", "docs", "docs/_build"]
session.install("-e", ".")
session.install("sphinx", "sphinx-autobuild", "sphinx-rtd-theme")
session.install("sphinx<7", "sphinx-autobuild", "sphinx-rtd-theme")

build_dir = Path("docs", "_build")
if build_dir.exists():
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ rye = { dev-dependencies = [
"pytest>=8.0.2",
"pytest-cov>=4.1.0",
"ruff>=0.3.7",
"sphinx-autodoc-typehints>=2.0.0",
"tqdm>=4.66.2",
"types-attrs>=19.1.0",
"xdoctest>=1.1.3",
"sphinx-rtd-theme>=2.0.0",
"matplotlib>=3.7.5",
"pre-commit>=3.5.0",
"sphinx>=7.1.2",
"sphinx<7",
"sphinx-autodoc-typehints<2",
"sphinx-rtd-theme>=2.0.0",
"sphinx-autobuild>=2021.3.14",
] }

Expand Down
8 changes: 4 additions & 4 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cycler==0.12.1
# via matplotlib
distlib==0.3.8
# via virtualenv
docutils==0.20.1
docutils==0.19
# via sphinx
# via sphinx-rtd-theme
exceptiongroup==1.2.0
Expand All @@ -45,7 +45,7 @@ future==1.0.0
# via uncertainties
identify==2.5.35
# via pre-commit
idna==3.6
idna==3.7
# via requests
imagesize==1.4.1
# via sphinx
Expand Down Expand Up @@ -125,13 +125,13 @@ six==1.16.0
# via python-dateutil
snowballstemmer==2.2.0
# via sphinx
sphinx==7.1.2
sphinx==6.2.1
# via sphinx-autobuild
# via sphinx-autodoc-typehints
# via sphinx-rtd-theme
# via sphinxcontrib-jquery
sphinx-autobuild==2021.3.14
sphinx-autodoc-typehints==2.0.0
sphinx-autodoc-typehints==1.23.0
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==1.0.4
# via sphinx
Expand Down

0 comments on commit a87322a

Please sign in to comment.