pages.md
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.
/
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>socle</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
socle<span class="theme">@test</span>
</nav>
<main><article><h1>repositories</h1>
<table class="log">
<tbody>
<tr><td class="name"><a href="/fixturama/">fixturama</a></td><td>the fixture</td><td class="soft">add docs and src</td></tr>
</tbody>
</table>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
repo home馃敆
Clone URL, branches and tags, and the README rendered at HEAD.
/fixturama/
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / fixturama
</nav>
<nav class="arc" aria-label="page moves" style="padding-bottom:calc(.8rem + 67px)">
<a class="va" href="/fixturama/tree/main/" title="browse the tree at main" style="--dy:67px">files</a>
<a class="vb" href="/fixturama/log/main" title="commit log of main" style="--dy:7px">log</a>
<a class="vc" href="#branches" title="branches and tags" style="--dy:7px">branches</a>
<a class="va" href="#clone" title="the clone command" style="--dy:67px">clone</a>
</nav>
<main><article><p class="tagline">the fixture</p>
<div class="exhibit"><h1 id="fixturama">Fixturama<a href="#fixturama" class="anchor">馃敆</a></h1>
<p>A repo that exists to be looked at.</p>
</div>
<p class="plaque">README.md 路 49 B 路 main = <code>9db23702e9</code></p>
<p class="clone boxed" id="clone">clone: <code>git clone http://socle.example/fixturama</code></p>
<p id="branches">branches: <a href="/fixturama/tree/dev/">dev</a>, <a href="/fixturama/tree/main/">main</a>
路 tags: <a href="/fixturama/tree/v1.0/">v1.0</a></p>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
tree listings馃敆
The root tree, and a subdirectory (note the escaped space in the file link).
/fixturama/tree/main/
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama @ main</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / main
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 2px)">
<a class="va" href="/fixturama/log/main" title="commit log of main" style="--dy:2px">log</a>
<a class="vb" href="/fixturama/" title="repo home" style="--dy:2px">home</a>
</nav>
<main><article><h1>fixturama</h1>
<table class="tree">
<tbody>
<tr><td class="name"><a href="/fixturama/tree/main/docs/">docs/</a></td><td class="size"></td></tr>
<tr><td class="name"><a href="/fixturama/tree/main/src/">src/</a></td><td class="size"></td></tr>
<tr><td class="name"><a href="/fixturama/tree/main/README.md">README.md</a></td><td class="size">49 B</td></tr>
</tbody>
</table>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
/fixturama/tree/main/docs/
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama/docs @ main</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/main/">main</a> / docs
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 10px)">
<a class="va" href="/fixturama/tree/main/" title="parent directory" style="--dy:10px">up</a>
<a class="vb" href="/fixturama/log/main" title="commit log of main" style="--dy:0px">log</a>
<a class="vc" href="/fixturama/" title="repo home" style="--dy:10px">home</a>
</nav>
<main><article><h1>docs</h1>
<table class="tree">
<tbody>
<tr><td class="name"><a href="/fixturama/tree/main/">..</a></td><td class="size"></td></tr>
<tr><td class="name"><a href="/fixturama/tree/main/docs/notes.md">notes.md</a></td><td class="size">17 B</td></tr>
<tr><td class="name"><a href="/fixturama/tree/main/docs/with%20space.txt">with space.txt</a></td><td class="size">25 B</td></tr>
</tbody>
</table>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
file views馃敆
Markdown renders; plain text shows preformatted. The sha-addressed variant also demonstrates the immutable cache header.
/fixturama/tree/main/README.md
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama/README.md @ main</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/main/">main</a> / README.md
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 23px)">
<a class="va" href="/fixturama/raw/main/README.md" title="the raw bytes" style="--dy:23px">raw</a>
<a class="vb" href="/fixturama/tree/main/" title="containing directory" style="--dy:2px">up</a>
<a class="vc" href="/fixturama/log/main" title="commit log of main" style="--dy:2px">log</a>
<a class="va" href="/fixturama/" title="repo home" style="--dy:23px">home</a>
</nav>
<main><article><h1>README.md</h1>
<div class="exhibit"><h1 id="fixturama">Fixturama<a href="#fixturama" class="anchor">馃敆</a></h1>
<p>A repo that exists to be looked at.</p>
</div>
<p class="plaque">README.md 路 49 B 路 <code>9db23702e9</code></p>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
/fixturama/tree/main/docs/with%20space.txt
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama/docs/with space.txt @ main</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/main/">main</a> / <a href="/fixturama/tree/main/docs/">docs</a> / with space.txt
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 23px)">
<a class="va" href="/fixturama/raw/main/docs/with%20space.txt" title="the raw bytes" style="--dy:23px">raw</a>
<a class="vb" href="/fixturama/tree/main/docs/" title="containing directory" style="--dy:2px">up</a>
<a class="vc" href="/fixturama/log/main" title="commit log of main" style="--dy:2px">log</a>
<a class="va" href="/fixturama/" title="repo home" style="--dy:23px">home</a>
</nav>
<main><article><h1>with space.txt</h1>
<div class="exhibit"><pre class="file">even this filename works
</pre></div>
<p class="plaque">docs/with space.txt 路 25 B 路 <code>9db23702e9</code></p>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/README.md
status: 200
Cache-Control: public, max-age=31536000, immutable
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama/README.md @ 9db23702e9</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/">9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f</a> / README.md
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 23px)">
<a class="va" href="/fixturama/raw/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/README.md" title="the raw bytes" style="--dy:23px">raw</a>
<a class="vb" href="/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/" title="containing directory" style="--dy:2px">up</a>
<a class="vc" href="/fixturama/log/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f" title="commit log of 9db23702e9" style="--dy:2px">log</a>
<a class="va" href="/fixturama/" title="repo home" style="--dy:23px">home</a>
</nav>
<main><article><h1>README.md</h1>
<div class="exhibit"><h1 id="fixturama">Fixturama<a href="#fixturama" class="anchor">馃敆</a></h1>
<p>A repo that exists to be looked at.</p>
</div>
<p class="plaque">README.md 路 49 B 路 <code>9db23702e9</code></p>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
log馃敆
/fixturama/log/main
status: 200
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama log @ main</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / log / main
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 2px)">
<a class="va" href="/fixturama/tree/main/" title="browse the tree at main" style="--dy:2px">files</a>
<a class="vb" href="/fixturama/" title="repo home" style="--dy:2px">home</a>
</nav>
<main><article><h1>log: main</h1>
<table class="log">
<thead><tr><th>commit</th><th>date</th><th>author</th><th>subject</th></tr></thead>
<tbody>
<tr><td class="hash"><a href="/fixturama/commit/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f">9db23702e9</a></td><td class="date">2026-01-02</td><td>Ada Fixture</td><td>add docs and src</td></tr>
<tr><td class="hash"><a href="/fixturama/commit/64ac67a35d36079e167cb8f929fd57f859c8b5d1">64ac67a35d</a></td><td class="date">2026-01-02</td><td>Ada Fixture</td><td>inaugurate with a readme</td></tr>
</tbody>
</table>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
commit馃敆
A commit with a parent: metadata, message, and a multi-file diff.
/fixturama/commit/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f
status: 200
Cache-Control: public, max-age=31536000, immutable
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama commit 9db23702e9</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / commit / 9db23702e9
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 10px)">
<a class="va" href="/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/" title="browse the tree at this commit" style="--dy:10px">files</a>
<a class="vb" href="/fixturama/log/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f" title="the log from this commit" style="--dy:0px">log</a>
<a class="vc" href="/fixturama/" title="repo home" style="--dy:10px">home</a>
</nav>
<main><article><h1>add docs and src</h1>
<p>commit <code>9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f</code> 路 parent <a href="/fixturama/commit/64ac67a35d36079e167cb8f929fd57f859c8b5d1"><code>64ac67a35d</code></a>
路 <a href="/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/">browse this tree</a><br>
Ada Fixture, 2026-01-02 03:04:05 UTC</p>
<pre class="diff"><span class="d-file">diff --git a/docs/notes.md b/docs/notes.md</span>
<span class="d-file">new file mode 100644</span>
<span class="d-file">index 0000000..639f33e</span>
<span class="d-file">--- /dev/null</span>
<span class="d-file">+++ b/docs/notes.md</span>
<span class="d-hunk">@@ -0,0 +1 @@</span>
<span class="d-add">+Notes live here.</span>
<span class="d-file">diff --git a/docs/with space.txt b/docs/with space.txt</span>
<span class="d-file">new file mode 100644</span>
<span class="d-file">index 0000000..9c8e1ee</span>
<span class="d-file">--- /dev/null</span>
<span class="d-file">+++ b/docs/with space.txt </span>
<span class="d-hunk">@@ -0,0 +1 @@</span>
<span class="d-add">+even this filename works</span>
<span class="d-file">diff --git a/src/hello.txt b/src/hello.txt</span>
<span class="d-file">new file mode 100644</span>
<span class="d-file">index 0000000..b0760d0</span>
<span class="d-file">--- /dev/null</span>
<span class="d-file">+++ b/src/hello.txt</span>
<span class="d-hunk">@@ -0,0 +1 @@</span>
<span class="d-add">+hello from the fixture</span></pre>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
The root commit: no parent, so its diff is from scratch.
/fixturama/commit/64ac67a35d36079e167cb8f929fd57f859c8b5d1
status: 200
Cache-Control: public, max-age=31536000, immutable
Content-Type: text/html; charset=utf-8
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fixturama commit 64ac67a35d</title>
<link rel="stylesheet" href="/-/style.css">
</head>
<body>
<div class="flank left"></div><div class="flank right"></div>
<div class="sheet">
<nav class="crumbs">
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / commit / 64ac67a35d
</nav>
<nav class="arc corner" aria-label="page moves" style="padding-bottom:calc(.8rem + 10px)">
<a class="va" href="/fixturama/tree/64ac67a35d36079e167cb8f929fd57f859c8b5d1/" title="browse the tree at this commit" style="--dy:10px">files</a>
<a class="vb" href="/fixturama/log/64ac67a35d36079e167cb8f929fd57f859c8b5d1" title="the log from this commit" style="--dy:0px">log</a>
<a class="vc" href="/fixturama/" title="repo home" style="--dy:10px">home</a>
</nav>
<main><article><h1>inaugurate with a readme</h1>
<p>commit <code>64ac67a35d36079e167cb8f929fd57f859c8b5d1</code>
路 <a href="/fixturama/tree/64ac67a35d36079e167cb8f929fd57f859c8b5d1/">browse this tree</a><br>
Ada Fixture, 2026-01-02 03:04:05 UTC</p>
<pre class="diff"><span class="d-file">diff --git a/README.md b/README.md</span>
<span class="d-file">new file mode 100644</span>
<span class="d-file">index 0000000..5a52002</span>
<span class="d-file">--- /dev/null</span>
<span class="d-file">+++ b/README.md</span>
<span class="d-hunk">@@ -0,0 +1,3 @@</span>
<span class="d-add">+# Fixturama</span>
<span class="d-add">+</span>
<span class="d-add">+A repo that exists to be looked at.</span></pre>
</article></main>
</div>
<footer class="ground">
<div class="floor"></div>
<p class="colophon">test 路 socle</p>
</footer>
</body>
</html>
error pages馃敆
A malformed ref is the client's fault; an unknown repo simply isn't there.
/fixturama/tree/main..dev/
status: 400
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
invalid: ref "main..dev" contains ".."
/nosuch/
status: 404
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
404 page not found
testdata/pages.md 路 17.8 KiB 路 68bc19f54a