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
```
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
```