Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__/
# Environments
.venv/
.env
.env.local

# Testing
.pytest_cache/
Expand Down
6 changes: 5 additions & 1 deletion tests/test_repo_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down