-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/godoc: don't render doc on worker
The Package.Render method is only used on the worker to get the synopsis and other doc-related information. Ever since we started rendering doc on the frontend, the worker has ignored the rendered documentation. So stop rendering the doc, and rename the method to DocInfo to reflect that. One minor consequence is that we no longer flag packages with excessively large doc as having a bad status. As far as the worker is concerned, they are fine; the error will manifest on the frontend (and we will serve a "documentation too large" page). This is all good: we only used a distinct status in this case so we could reprocess if our limits changed, but these modules no longer need reprocessing. For golang/go#40850 Change-Id: I3c7c49f0beb7a6d8a37daabdce75f83ef108eddb Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/312270 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
- Loading branch information
Showing
4 changed files
with
14 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters