x/pkgsite: add repository link on documentation page #39218
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
UX
Issues that involve UXD/UXR input
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/sirupsen/logrus?tab=doc
https://pkg.go.dev/github.com/sirupsen/logrus@v1.6.0?tab=doc
https://pkg.go.dev/github.com/sirupsen/logrus?tab=doc#AddHook
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0
What is the issue?
There are no links to the github/source repository from the doc pages.
I don't want to click two clicks to go to the source:
What did you expect to see?

This is godoc.org's behavior when you click on the package name:master
branch when i click on the function reference, instead i am taken to a tagged version, even though I am on a "tagless" version of the doc site (https://pkg.go.dev/github.com/sirupsen/logrus?tab=doc#AddHook is not @Version).This is godoc.org's behavior.
What did you see instead?
I can't click on it, need to copy and paste + hit enter.
I can't click on it.
I am taken to https://github.com/sirupsen/logrus/blob/v1.6.0/exported.go#L50 instead of https://github.com/sirupsen/logrus/blob/master/exported.go#L50
The text was updated successfully, but these errors were encountered: