pages.md: browse-page snapshot fixtures
=======================================
HTML snapshots of socle's browse pages, served over the hermetic fixture repo
(see gitfixture_test.go; its pinned shas appear verbatim below).
Each case is a `url` hunk (the GET target) and a `response` hunk
(status, headers minus content-length, blank line, body).
Regenerate with `go test -run TestPageSnapshots . -testmark.regen` and review the diff.
index
-----
The repo index: names, descriptions, newest commit subjects.
[testmark]:# (index/url)
```text
/
```
[testmark]:# (index/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
socle
socle@test
repositories
```
repo home
---------
Clone URL, branches and tags, and the README rendered at HEAD.
[testmark]:# (repo-home/url)
```text
/fixturama/
```
[testmark]:# (repo-home/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
fixturama
socle @test / fixturama
the fixture
clone: git clone http://socle.example/fixturama
files 路 log
路 branches: dev , main
路 tags: v1.0
Fixturama馃敆
A repo that exists to be looked at.
```
tree listings
-------------
The root tree, and a subdirectory (note the escaped space in the file link).
[testmark]:# (tree-root/url)
```text
/fixturama/tree/main/
```
[testmark]:# (tree-root/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
fixturama @ main
socle @test / fixturama / main
fixturama
```
[testmark]:# (tree-docs/url)
```text
/fixturama/tree/main/docs/
```
[testmark]:# (tree-docs/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
fixturama/docs @ main
socle @test / fixturama / main / docs
docs
```
file views
----------
Markdown renders; plain text shows preformatted.
The sha-addressed variant also demonstrates the immutable cache header.
[testmark]:# (file-markdown/url)
```text
/fixturama/tree/main/README.md
```
[testmark]:# (file-markdown/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
fixturama/README.md @ main
socle @test / fixturama / main / README.md
raw
README.md
Fixturama馃敆
A repo that exists to be looked at.
```
[testmark]:# (file-text/url)
```text
/fixturama/tree/main/docs/with%20space.txt
```
[testmark]:# (file-text/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
fixturama/docs/with space.txt @ main
socle @test / fixturama / main / docs / with space.txt
raw
with space.txt
even this filename works
```
[testmark]:# (file-at-sha/url)
```text
/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/README.md
```
[testmark]:# (file-at-sha/response)
```text
status: 200
Cache-Control: public, max-age=31536000, immutable
Content-Type: text/html; charset=utf-8
fixturama/README.md @ 9db23702e9
socle @test / fixturama / 9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f / README.md
raw
README.md
Fixturama馃敆
A repo that exists to be looked at.
```
log
---
[testmark]:# (log-main/url)
```text
/fixturama/log/main
```
[testmark]:# (log-main/response)
```text
status: 200
Content-Type: text/html; charset=utf-8
fixturama log @ main
socle @test / fixturama / log / main
log: main
commit date author subject
9db23702e9 2026-01-02 Ada Fixture add docs and src
64ac67a35d 2026-01-02 Ada Fixture inaugurate with a readme
```
commit
------
A commit with a parent: metadata, message, and a multi-file diff.
[testmark]:# (commit-main/url)
```text
/fixturama/commit/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f
```
[testmark]:# (commit-main/response)
```text
status: 200
Cache-Control: public, max-age=31536000, immutable
Content-Type: text/html; charset=utf-8
fixturama commit 9db23702e9
socle @test / fixturama / commit / 9db23702e9
add docs and src
commit 9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f 路 parent 64ac67a35d
路 browse this tree
Ada Fixture, 2026-01-02 03:04:05 UTC
diff --git a/docs/notes.md b/docs/notes.md
new file mode 100644
index 0000000..639f33e
--- /dev/null
+++ b/docs/notes.md
@@ -0,0 +1 @@
+Notes live here.
diff --git a/docs/with space.txt b/docs/with space.txt
new file mode 100644
index 0000000..9c8e1ee
--- /dev/null
+++ b/docs/with space.txt
@@ -0,0 +1 @@
+even this filename works
diff --git a/src/hello.txt b/src/hello.txt
new file mode 100644
index 0000000..b0760d0
--- /dev/null
+++ b/src/hello.txt
@@ -0,0 +1 @@
+hello from the fixture
```
The root commit: no parent, so its diff is from scratch.
[testmark]:# (commit-root/url)
```text
/fixturama/commit/64ac67a35d36079e167cb8f929fd57f859c8b5d1
```
[testmark]:# (commit-root/response)
```text
status: 200
Cache-Control: public, max-age=31536000, immutable
Content-Type: text/html; charset=utf-8
fixturama commit 64ac67a35d
socle @test / fixturama / commit / 64ac67a35d
inaugurate with a readme
commit 64ac67a35d36079e167cb8f929fd57f859c8b5d1
路 browse this tree
Ada Fixture, 2026-01-02 03:04:05 UTC
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..5a52002
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# Fixturama
+
+A repo that exists to be looked at.
```
error pages
-----------
A malformed ref is the client's fault; an unknown repo simply isn't there.
[testmark]:# (err-bad-ref/url)
```text
/fixturama/tree/main..dev/
```
[testmark]:# (err-bad-ref/response)
```text
status: 400
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
invalid: ref "main..dev" contains ".."
```
[testmark]:# (err-unknown-repo/url)
```text
/nosuch/
```
[testmark]:# (err-unknown-repo/response)
```text
status: 404
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
404 page not found
```