doc: use pkg.go.dev for documentation links (#681)

pkg.go.dev serves Go documentation. However, it also understands modules
and has information about past versions of a package. Later this year
godoc.org will be redirected to pkg.go.dev.

Let's use this subdomain going forward when linking Go documentation.

Reference: https://blog.golang.org/pkg.go.dev-2020
This commit is contained in:
Justin Page
2020-08-22 03:11:36 -07:00
committed by GitHub
parent 238ac627f6
commit e9ae2072ea
5 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ const siteConfig = {
// For no header links in the top nav bar -> headerLinks: [],
headerLinks: [
{doc: 'getting-started', label: 'Docs'},
{href: 'https://godoc.org/github.com/facebook/ent', label: 'GoDoc'},
{href: 'https://pkg.go.dev/github.com/facebook/ent?tab=doc', label: 'GoDoc'},
{href: 'https://github.com/facebook/ent', label: 'Github'},
{ blog: true, label: 'Blog' },
],