socle

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>
<nav>
socle<span class="theme">@test</span>

</nav>

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

</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>
<nav>
<a href="/">socle</a><span class="theme">@test</span> / fixturama

</nav>

<article><p>the fixture</p>
<p class="clone">clone: <code>git clone http://socle.example/fixturama</code></p>
<p><a href="/fixturama/tree/main/">files</a> 路 <a href="/fixturama/log/main">log</a>
路 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>
<h1 id="fixturama">Fixturama<a href="#fixturama" class="anchor">馃敆</a></h1>
<p>A repo that exists to be looked at.</p>
</article>

</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>
<nav>
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / main

</nav>

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

</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>
<nav>
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/main/">main</a> / docs

</nav>

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

</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>
<nav>
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/main/">main</a> / README.md
<a class="raw" href="/fixturama/raw/main/README.md">raw</a>
</nav>

<article><h1>README.md</h1>
<h1 id="fixturama">Fixturama<a href="#fixturama" class="anchor">馃敆</a></h1>
<p>A repo that exists to be looked at.</p>
</article>

</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>
<nav>
<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
<a class="raw" href="/fixturama/raw/main/docs/with%20space.txt">raw</a>
</nav>

<article><h1>with space.txt</h1>
<pre class="file">even this filename works
</pre></article>

</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>
<nav>
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / <a href="/fixturama/tree/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/">9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f</a> / README.md
<a class="raw" href="/fixturama/raw/9db23702e9ae3e8317b5dba562b0f3bd1cb25e7f/README.md">raw</a>
</nav>

<article><h1>README.md</h1>
<h1 id="fixturama">Fixturama<a href="#fixturama" class="anchor">馃敆</a></h1>
<p>A repo that exists to be looked at.</p>
</article>

</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>
<nav>
<a href="/">socle</a><span class="theme">@test</span> / <a href="/fixturama/">fixturama</a> / log / main

</nav>

<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/tree/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/tree/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>

</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 路 8.4 KiB 路 543c549514