Join GitHub today
x/website: redirect golang.org/x/<repo> to pkg.go.dev instead of godoc.org #36106
One issue I noticed is that godoc.org shows the version in the master branch, while pkg.go.dev shows the "latest released" version. For example, golang.org/x/mod shows the doc from v0.1.0 because that's the latest released version. (https://pkg.go.dev/golang.org/x/mod/semver?tab=versions) But some users may want to see the doc for the recent version commited in the master branch. pkg.go.dev currently does not provide an easy way to achieve that unless the user already knows the pseudo version mapped from the current master commit.
The redirect to
I believe the long-term goal is for this issue to happen, but there is still some feature parity gap to close. @julieqiu knows more.
The golang.org/x/pkgsite repository is the first one that needs it. For golang/go#39150. For golang/go#36747. For golang/go#36106. Change-Id: I7fa38cbe7d5d92012bb00f9c4587f60d06a94199 Reviewed-on: https://go-review.googlesource.com/c/build/+/234677 Reviewed-by: Julie Qiu <email@example.com>
Allow golang.org/x repos to opt-in to use pkg.go.dev for documentation. The golang.org/x/pkgsite repository is the first one to use it. Update to current golang.org/x/build version and regenerate: go get golang.org/x/build/repos@92427f67eca1ac8f769c740f272196f368082630 go mod tidy go generate ./... Fixes golang/go#39150. For golang/go#36747. For golang/go#36106. Change-Id: Ia91725c12546c4e7467601d951144af3cb1e6863 Reviewed-on: https://go-review.googlesource.com/c/website/+/234678 Run-TryBot: Dmitri Shuralyov <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Julie Qiu <firstname.lastname@example.org>