x/pkgsite: example links do not open examples #37520
Either way, the page ends up positioned on the “> Example” for Fields,
At the least, the example should be opened.
I also wonder if the page can be adjusted to display the Fields definition
The text was updated successfully, but these errors were encountered:
This change includes auto expand functionality for examples in playground.js which is included with the executable-examples feature flag. This includes: When users click on an example href that links to an example, the example will be auto expanded as such: before example link: https://i.imgur.com/7fSa3E9.gif after example link: https://i.imgur.com/4dQ4UWO.gif When a user navigates to a pkg.go.dev url with an example hash (i.e: ?tab=doc#example-AtomicLevel), the example is auto exapnded. before hash change: https://i.imgur.com/luKw5uo.gif after hash change: https://i.imgur.com/mzUl33F.gif Updates golang/go#37520 Change-Id: I6cba5ea979ed516bcdb753eee92eecec7839c2f4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/250467 Reviewed-by: Julie Qiu <firstname.lastname@example.org> Reviewed-by: Jamal Carvalho <email@example.com>