commit | f04e3bf171e17665adf7a5db6bfc67fe23e319b3 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Wed Sep 30 17:58:48 2020 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Oct 01 11:54:13 2020 +0000 |
tree | 6668e6698345ab13172a6ea9315f9a458d895360 | |
parent | 197e3b695776474cea3ca2d8e365ed4e02741803 [diff] |
internal/godoc: add render test, fix node removal Add a test that verifies that removeUnusedASTNodes doesn't change the doc. Fix some issues with removeUnusedASTNodes: it can't remove function bodies that may be part of examples, and it can't remove the top-level Comments field. Also, two changes that prevent clobbering the AST too early: - Remove cycles from a Package when encoding, not when creating; otherwise we can't use the Package to render doc before we encode it. - Tell go/doc to preserve the AST, so we can render, then encode. Change-Id: I2725d278572cd3de3f2019157faf224ab4b592a1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/258424 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jonathan Amsterdam <jba@google.com>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
Pkg.go.dev launched in November 2019, and is currently under active development by the Go team.
Here's what we are currently working on:
Design updates: We have some design changes planned for pkg.go.dev, to address UX feedback that we have received. You can expect a more cohesive search and navigation experience coming soon. We plan to share these designs for feedback once they are ready.
Godoc.org redirect: Longer term, we are working towards redirecting godoc.org traffic to pkg.go.dev. We know that there are features available on godoc.org that users want to see on pkg.go.dev, and we want to ensure that we address these. We’ve been keeping track of issues related to redirecting godoc.org traffic on Go issue #39144. These issues will be prioritized in the next few months. We also plan to continue improving our license detection algorithm.
Search improvements: We’ll be improving our search experience based on feedback in Go issue #37810, to make it easier for users to find the dependencies they are looking for and make better decisions around which ones to import.
We encourage everyone to begin using pkg.go.dev today for all of their needs and to file feedback! You can redirect all of your requests from godoc.org to pkg.go.dev, by clicking Always use pkg.go.dev
at the top of any page on godoc.org.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #tools slack channel on the Gophers slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.