diff --git a/.gitignore b/.gitignore index aa6732e..6877096 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ __pycache__/ # Environments .venv/ .env +.env.local # Testing .pytest_cache/ diff --git a/tests/test_repo_docs.py b/tests/test_repo_docs.py index f42abf0..4821e38 100644 --- a/tests/test_repo_docs.py +++ b/tests/test_repo_docs.py @@ -31,10 +31,14 @@ def test_zensical_navigation_points_to_real_repository_docs() -> None: def test_vercel_builds_the_zensical_static_output() -> None: config = json.loads((REPO / "vercel.json").read_text()) + # The repository has a pyproject.toml for its own tooling, but the deployed + # artifact is static. Without this override Vercel selects its Python preset + # and rejects the repository for not having an application entry point. + assert config["framework"] is None assert config["outputDirectory"] == "site" assert "zensical build" in config["buildCommand"] assert "--strict" in config["buildCommand"] - assert "uv sync --locked" in config["installCommand"] + assert config["installCommand"] == "uv sync --locked --only-group docs" def test_ci_builds_repository_documentation() -> None: diff --git a/vercel.json b/vercel.json index 62682d0..3134b77 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,7 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", - "installCommand": "python3 -m pip install uv==0.12.3 && uv sync --locked --only-group docs", + "framework": null, + "installCommand": "uv sync --locked --only-group docs", "buildCommand": "uv run --only-group docs zensical build --clean --strict", "outputDirectory": "site", "cleanUrls": true,