]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: use golang.org/x/pkgsite/cmd/internal/doc to start server
authorMichael Matloob <matloob@golang.org>
Mon, 19 May 2025 19:31:37 +0000 (15:31 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 20 May 2025 22:06:58 +0000 (15:06 -0700)
commit609197b406ce8d9efd39bd3984b2cade74df35a6
tree022f6f19cb082edc609bc9ea1297dc8f558fc0f6
parent546761aff45111490b21a045e3d989104182bcd9
cmd/doc: use golang.org/x/pkgsite/cmd/internal/doc to start server

This change switches the pkgsite command invoked to start a pkgsite
server from golang.org/x/pkgsite/cmd/pkgsite to
golang.org/x/pkgsite/cmd/internal/doc. The doc command is a simplified
version of cmd/pkgsite that changes some options to improve the user
experience. For example, it limits logging informational log messages,
doesn't always expect to find modules (for example if we're outside of a
module getting documentation for the standard library), and it takes the
address of the page to open in the browser (which simplifies waiting for
the server to start listening).

Fixes #68106

Change-Id: I667a49d03823242fa1aff333ecb1c0f198e92412
Reviewed-on: https://go-review.googlesource.com/c/go/+/674158
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/doc/main.go