[pkgsite] static/frontend/api: add anchor links to api doc page

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Sep 9, 2026, 5:01:59 PMSep 9
to Ethan Lee, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Jonathan Amsterdam, kokoro, golang...@luci-project-accounts.iam.gserviceaccount.com, Hyang-Ah Hana Kim, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
static/frontend/api: add anchor links to api doc page

This matches the same behavior elsewhere in pkgsite. Users are now able
to link directly to sections of the api page.

To test locally: `go run ./cmd/pkgsite -dev -http=:8080`
Change-Id: I0995af2bf7a966144a8f12520057d2878b7d5f1e
Auto-Submit: Ethan Lee <etha...@google.com>
kokoro-CI: kokoro <noreply...@google.com>
Reviewed-by: Jonathan Amsterdam <j...@google.com>
Files:
  • M internal/api/api.go
  • M internal/frontend/templates/templates.go
  • M static/frontend/api/api.tmpl
Change size: M
Delta: 3 files changed, 39 insertions(+), 11 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: I0995af2bf7a966144a8f12520057d2878b7d5f1e
Gerrit-Change-Number: 829884
Gerrit-PatchSet: 3
Gerrit-Owner: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
Gerrit-Reviewer: kokoro <noreply...@google.com>
Gerrit-CC: kokoro <noreply...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages