Skip to content

Commit 9412892

Browse files
authored
📚 Update theme versions (#189)
1 parent fe583c5 commit 9412892

File tree

3 files changed

+16
-43
lines changed

3 files changed

+16
-43
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ horizontal card (grid row inside card, picture on left)
7272

7373
subtitle for card (see <https://material.io/components/cards#anatomy>)
7474

75-
rtd PRs not working
76-
7775

7876
[github-ci]: https://github.com/executablebooks/sphinx-design/workflows/continuous-integration/badge.svg?branch=main
7977
[github-link]: https://github.com/executablebooks/sphinx-design

pyproject.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ testing = [
4343
"pytest-regressions",
4444
"defusedxml",
4545
]
46-
theme-furo = ["furo~=2023.7.0"]
47-
theme-pydata = ["pydata-sphinx-theme~=0.13.0"]
48-
theme-rtd = ["sphinx-rtd-theme~=1.0"]
49-
theme-sbt = ["sphinx-book-theme~=1.0"]
46+
47+
theme-furo = ["furo~=2024.5.4"]
48+
theme-pydata = ["pydata-sphinx-theme~=0.15.2"]
49+
theme-rtd = ["sphinx-rtd-theme~=2.0"]
50+
theme-sbt = ["sphinx-book-theme~=1.1"]
5051

5152
[tool.flit.sdist]
5253
exclude = [

tox.ini

+11-37
Original file line numberDiff line numberDiff line change
@@ -15,54 +15,28 @@ extras =
1515
testing
1616
commands = pytest {posargs}
1717

18-
[testenv:docs-{update,clean}-{alabaster,rtd,pydata,sbt,furo}]
18+
[testenv:docs-{alabaster,rtd,pydata,sbt,furo}]
1919
description =
20-
clean: Run documentation build for this theme (removing existing builds)
21-
update: Run documentation build for this theme (reusing existing builds)
20+
Run documentation build for this theme
2221
extras =
2322
rtd
2423
rtd: theme_rtd
2524
pydata: theme_pydata
2625
sbt: theme_sbt
2726
furo: theme_furo
28-
allowlist_externals =
29-
clean: rm
30-
echo
27+
allowlist_externals = echo
28+
passenv =
29+
BUILDER
30+
CLEAN
31+
TERM
3132
setenv =
32-
update: SKIP_APIDOC = true
3333
alabaster: SPHINX_THEME = alabaster
3434
rtd: SPHINX_THEME = sphinx_rtd_theme
3535
pydata: SPHINX_THEME = pydata_sphinx_theme
3636
sbt: SPHINX_THEME = sphinx_book_theme
3737
furo: SPHINX_THEME = furo
38+
commands_pre =
39+
python -c "import shutil; shutil.rmtree('docs/_build/{env:BUILDER:html}/{env:SPHINX_THEME:}', ignore_errors=True) if '{env:CLEAN:}' else None"
3840
commands =
39-
clean: rm -rf docs/_build/{posargs:html}
40-
sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html}
41-
commands_post = echo "open docs/_build/{posargs:html}/index.html"
42-
43-
[testenv:docs-live-{alabaster,rtd,pydata,sbt,furo}]
44-
description = Start documentation autobuild for this theme
45-
extras =
46-
rtd
47-
rtd: theme_rtd
48-
pydata: theme_pydata
49-
sbt: theme_sbt
50-
furo: theme_furo
51-
deps =
52-
pre-commit
53-
sphinx-autobuild
54-
setenv =
55-
alabaster: SPHINX_THEME = alabaster
56-
rtd: SPHINX_THEME = sphinx_rtd_theme
57-
pydata: SPHINX_THEME = pydata_sphinx_theme
58-
sbt: SPHINX_THEME = sphinx_book_theme
59-
furo: SPHINX_THEME = furo
60-
commands =
61-
sphinx-autobuild \
62-
--watch sphinx_design \
63-
--watch style \
64-
--pre-build "npm run css" \
65-
--re-ignore sphinx_design/compiled/.* \
66-
--re-ignore docs/_build/.* \
67-
--port 0 --open-browser \
68-
-n -b {posargs:html} docs/ docs/_build/{posargs:html}
41+
sphinx-build -nW --keep-going {posargs} -b {env:BUILDER:html} docs/ docs/_build/{env:BUILDER:html}/{env:SPHINX_THEME:}
42+
commands_post = echo "open docs/_build//{env:BUILDER:html}/{env:SPHINX_THEME:}/index.html"

0 commit comments

Comments
 (0)