-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Description
Today, users can run pkgsite locally without setting up a local database by running:
go run cmd/frontend/main.go -direct_proxy -proxy_url=<your proxy URL>
See flags in cmd/frontend/main.go, and doc/frontend.md for docs.
Doing so allows users to view the package documentation, overview, imports, and licenses tabs. Search and other tabs on the package page are not supported in direct proxy mode.
However, there are cases when a user might want to run pkgsite on their local machine, and be able to view a private repository that is not available via a proxy.
Tasks related to this topic:
- x/pkgsite: run locally to view documentation of a pending CL #40159: run locally to view documentation of a pending CL
- x/pkgsite: cannot refresh documentation locally #54479
- render the standard library for GOROOT
- link to github documentation when possible?
- x/pkgsite: can not show dependencies with vendor directory #59542: add support for rendering vendor directories
- Display unexported symbols on request. (x/tools/cmd/godoc: show internal packages when explicitly requested #12092 proposal: x/tools/{godoc,cmd/godoc}: isolate, tag, and delete godoc #59056 (comment) )
Maybe:
- only render documentation for packages / units when they are accessed
This is an umbrella issue to discuss what features are needed for this to happen, so please comment on your use cases below. For discussions about hosting a private instance of pkgsite, including your own internal proxy, see #39827.