Skip to content
quarry View Ticket
Login

View Ticket

Tabbed documents on the repo landing: README, Contributing, License, Security

Fixed840e8a64ee974b3011298f90c75d4ec49d5e4b95Created 103.4 days agoUpdated 68.0 days ago
Description2026-08-19 13:01:52
GitHub's tabbed document panel on the repo landing: README | Contributing | <license name> | Security, each a rendered document, one click apart. The repo landing is already the files page, so this panel sits above (or replaces the top of) the tree listing.

**zit needs nothing new.** Root-level names are already reachable — the tip's tree listing (memoized per tip) finds them, `cat` serves them. This is web-layer composition over existing verbs; the store is untouched.

### Tabs by convention, curated by config

Default tab set, discovered at the tip root, case-insensitive, .md/.txt /bare extensions:

README* → "README" (always first, always the default tab) CONTRIBUTING* → "Contributing" LICENSE* / COPYING* → the detected license name, "License" as the honest fallback (same classifier the About panel wants — build it once) SECURITY* → "Security"

`.quarry/repo.json` (the same file the About panel reads) may curate and EXTEND — a project whose real onboarding doc is docs/INSTALL.md should be able to promote it:

{ "docs": [ { "path": "README.md" }, { "path": "docs/INSTALL.md", "label": "Install" }, { "path": "SECURITY.md" } ] }

Config order is tab order; a docs key REPLACES the convention set (curation means removal too); label defaults to the filename's stem. Paths are tree paths, so tabs are not limited to the root — the convention only DISCOVERS at the root.

### Mechanics

- Tab selection is URL state: `/r/{repo}` renders README, `/r/{repo}?doc=CONTRIBUTING.md` the next tab. Server-rendered links, zero script, linkable, and the back button works — same posture as every other view toggle. - Rendering goes through the existing file-render path (markdown pipeline, mimetype dispatch). #6ff100027f (render embedded docs) is the same renderer improved; whatever it gains, tabs gain. - The tab list itself comes from the `repo.about` op (#765689a7ac) so the panel and the sidebar are one aggregate, one invoke, and the JSON API sees both. - A repo with no README and no docs config gets no panel — the tree listing alone, exactly today's page.

### Not in scope

The edit pencil (GitHub's) — quarry edits files through commits, not a web editor. The badge wall in woodpecker's README is just markdown images and already renders; live badge PROXYING (fetching shields.io server-side) is its own privacy question and nobody has asked.

Extends #765689a7ac (About panel); related #6ff100027f (doc renderer).

2026-08-19 17:11:50

Shipped in 8ae30f59 as part of the About panel build - see #765689a7ac for the full notes. Tabs by root convention or .quarry/repo.json docs curation; URL-state selection; curated strip 404s unknown paths; harness test drives the whole loop against a real store.