From 7326d88f4e2e242ba8d5dc9ae9a746cb56ac47d2 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Sat, 18 May 2024 23:18:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Update=20theme=20versions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 -- pyproject.toml | 9 +++++---- tox.ini | 48 +++++++++++------------------------------------- 3 files changed, 16 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 60dfab7..41014fa 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,6 @@ horizontal card (grid row inside card, picture on left) subtitle for card (see ) -rtd PRs not working - [github-ci]: https://github.com/executablebooks/sphinx-design/workflows/continuous-integration/badge.svg?branch=main [github-link]: https://github.com/executablebooks/sphinx-design diff --git a/pyproject.toml b/pyproject.toml index 5865b2e..e8e923b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,10 +43,11 @@ testing = [ "pytest-regressions", "defusedxml", ] -theme-furo = ["furo~=2023.7.0"] -theme-pydata = ["pydata-sphinx-theme~=0.13.0"] -theme-rtd = ["sphinx-rtd-theme~=1.0"] -theme-sbt = ["sphinx-book-theme~=1.0"] + +theme-furo = ["furo~=2024.5.4"] +theme-pydata = ["pydata-sphinx-theme~=0.15.2"] +theme-rtd = ["sphinx-rtd-theme~=2.0"] +theme-sbt = ["sphinx-book-theme~=1.1"] [tool.flit.sdist] exclude = [ diff --git a/tox.ini b/tox.ini index cfc2e83..5f61643 100644 --- a/tox.ini +++ b/tox.ini @@ -15,54 +15,28 @@ extras = testing commands = pytest {posargs} -[testenv:docs-{update,clean}-{alabaster,rtd,pydata,sbt,furo}] +[testenv:docs-{alabaster,rtd,pydata,sbt,furo}] description = - clean: Run documentation build for this theme (removing existing builds) - update: Run documentation build for this theme (reusing existing builds) + Run documentation build for this theme extras = rtd rtd: theme_rtd pydata: theme_pydata sbt: theme_sbt furo: theme_furo -allowlist_externals = - clean: rm - echo +allowlist_externals = echo +passenv = + BUILDER + CLEAN + TERM setenv = - update: SKIP_APIDOC = true alabaster: SPHINX_THEME = alabaster rtd: SPHINX_THEME = sphinx_rtd_theme pydata: SPHINX_THEME = pydata_sphinx_theme sbt: SPHINX_THEME = sphinx_book_theme furo: SPHINX_THEME = furo +commands_pre = + python -c "import shutil; shutil.rmtree('docs/_build/{env:BUILDER:html}/{env:SPHINX_THEME:}', ignore_errors=True) if '{env:CLEAN:}' else None" commands = - clean: rm -rf docs/_build/{posargs:html} - sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html} -commands_post = echo "open docs/_build/{posargs:html}/index.html" - -[testenv:docs-live-{alabaster,rtd,pydata,sbt,furo}] -description = Start documentation autobuild for this theme -extras = - rtd - rtd: theme_rtd - pydata: theme_pydata - sbt: theme_sbt - furo: theme_furo -deps = - pre-commit - sphinx-autobuild -setenv = - alabaster: SPHINX_THEME = alabaster - rtd: SPHINX_THEME = sphinx_rtd_theme - pydata: SPHINX_THEME = pydata_sphinx_theme - sbt: SPHINX_THEME = sphinx_book_theme - furo: SPHINX_THEME = furo -commands = - sphinx-autobuild \ - --watch sphinx_design \ - --watch style \ - --pre-build "npm run css" \ - --re-ignore sphinx_design/compiled/.* \ - --re-ignore docs/_build/.* \ - --port 0 --open-browser \ - -n -b {posargs:html} docs/ docs/_build/{posargs:html} + sphinx-build -nW --keep-going {posargs} -b {env:BUILDER:html} docs/ docs/_build/{env:BUILDER:html}/{env:SPHINX_THEME:} +commands_post = echo "open docs/_build//{env:BUILDER:html}/{env:SPHINX_THEME:}/index.html"