2 Commits

Author SHA1 Message Date
klemek 6db1b561f0 chore: release 1.2.1
Python CI / ruff (push) Failing after 23s
Docker CI / build (push) Failing after 32s
Python CI / ruff-format-check (push) Failing after 34s
Python CI / ty (push) Failing after 30s
Python CI / coverage (push) Failing after 35s
2026-04-26 12:35:02 +02:00
klemek 4256398cca fix: spa index.html 2026-04-26 12:34:33 +02:00
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "stapler"
version = "1.2.0"
version = "1.2.1"
description = "Static pages as simple as a gzip file"
requires-python = ">=3.14"
dependencies = [
+1
View File
@@ -496,6 +496,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler, BaseHandler):
if (
page.spa is not None
and not (self.root_path / pathlib.Path(path[1:])).is_file()
and not (self.root_path / pathlib.Path(path[1:]) / "index.html").is_file()
):
path = f"/{page.path}/{page.spa}"
return super().translate_path(path)
Generated
+1 -1
View File
@@ -142,7 +142,7 @@ wheels = [
[[package]]
name = "stapler"
version = "1.2.0"
version = "1.2.1"
source = { editable = "." }
dependencies = [
{ name = "requests" },