Overview
| Artifact ID: | 183d66c07c039b17a7a3e40b160186d6e6d8dacf33f3fb770a917c4a008bb58f |
|---|---|
| Ticket: | 840e8a64ee974b3011298f90c75d4ec49d5e4b95
Tabbed documents on the repo landing: README, Contributing, License, Security |
| User & Date: | dmestas on 2026-08-19 13:01:52 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
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). - priority changed to: "Medium"
- severity changed to: "Minor"
- status changed to: "Open"
- subsystem changed to: "web"
- title changed to:
Tabbed documents on the repo landing: README, Contributing, License, Security
- type changed to: "Feature_Request"