Skip to content

Commit 2ce557d

Browse files
committed
fix: sphinx design
1 parent a6122e5 commit 2ce557d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ dependencies = [
8080
"mkdocs-awesome-pages-plugin ~=2.9",
8181
"pydata_sphinx_theme ~=0.16",
8282
"myst-parser ~=4.0",
83-
"Sphinx ~=8.0",
83+
"sphinx ~=8.0",
8484
"sphinx-autobuild>=2024.10.3",
8585
"sphinx-autoapi>=3.6.0",
86-
"sphinx-design>=0.6.1",
86+
"sphinx_design>=0.6.1",
8787
"sphinx-copybutton",
8888
]
8989

template/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ docs = [
9393
"pydata-sphinx-theme~=0.16",
9494
"sphinx-autobuild>=2024.10.3",
9595
"sphinx-autoapi>=3.6.0",
96-
"sphinx-design>=0.6.1",
96+
"sphinx_design>=0.6.1",
9797
"sphinx-copybutton>=0.5.2",
9898
{%- elif documentation == "mkdocs" %}
9999
"mkdocs-material ~=9.5",

tests/test_template_init.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_template_suite(
178178
@pytest.mark.installs
179179
@pytest.mark.parametrize("use_hatch_envs", [True, False])
180180
def test_docs_build(documentation: str, generated: Callable[..., Path], use_hatch_envs: bool):
181-
"""The docs should build."""
181+
"""The docs should build both with and without hatch environments."""
182182
if documentation == "no":
183183
return
184184

@@ -193,7 +193,8 @@ def test_docs_build(documentation: str, generated: Callable[..., Path], use_hatc
193193
pytest.skip(
194194
"Dont know enough about invoking shell commands on windows for this :(",
195195
)
196-
run_command("sphinx-apidoc -o docs/api src/alien_clones", project)
196+
# With autoapi we shouldn't have to manually run sphinx-apidoc anymore
197+
#run_command("sphinx-apidoc -o docs/api src/alien_clones", project)
197198
# prepend pythonpath so we don't have to actually install here...
198199
run_command(f"PYTHONPATH={str(project/'src')} sphinx-build -W -b html docs docs/_build", project)
199200

0 commit comments

Comments
 (0)