Repository navigation
web: show community files in tabs below the file list - #8615
Merged
Merged
Conversation
unknwon
force-pushed
the
code-react-flamego
branch
from
November 16, 2026 12:57
0f4acc7 to
89669e8
Compare
The box below the file list of the code browser now has a tab for each of the README, code of conduct, contributing guide, license and security policy, as on GitHub, and ?tab=license-ov-file and the like pick one. The root directory looks up the code of conduct, contributing guide and security policy in .github, then in the root, then in docs. An outline button lists the headings of the shown document with a filter.
unknwon
force-pushed
the
overview-tabs
branch
from
November 16, 2026 20:01
068cfe9 to
e588b10
Compare
unknwon
added a commit
that referenced
this pull request
Nov 16, 2026
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the pull request
Stacked on #8536.
The box below the file list of the code browser now works like GitHub's repository overview:
?tab=readme-ov-file,coc-ov-file,contributing-ov-file,license-ov-fileandsecurity-ov-filepick one, the same values as GitHub. The first tab keeps the URL clean..github, then in the root, then indocs, as on GitHub. A subdirectory shows only its README.LICENSE, show in monospace./api/web/{owner}/{repo}/srcreturns all overview files already rendered inoverview, in place ofreadme, so switching tabs needs no request and keeps the scroll position. Belowsm, extra tabs fold into the "More" menu ofPageTabs.Link to the issue: n/a
Checklist
Screenshots
Repository home: overview tabs with the outline open
License tab, picked with
?tab=license-ov-fileSubdirectory at 375px: only the README tab
Test plan
.github), License and Security tabs, and only the shown tab is marked current.?tab=...without a reload, and License shows the text in monospace.inst, and pick "Installation". The page jumps to the heading and the menu closes./src/main/docs. Only the README tab shows./src/main/internalshows no box.go test ./cmd/gogs/internal/web/,golangci-lint,tsc,eslintandprettierpass.AI usage
Written with Amp.