[pkgsite] internal/frontend: add CodeWiki link support to pkgsite

2 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Dec 20, 2025, 10:17:16 AM (yesterday) Dec 20
to Ethan Lee, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Jonathan Amsterdam, kokoro, Go LUCI, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
internal/frontend: add CodeWiki link support to pkgsite

- If a module's source repo exists in CodeWiki, display a link to
codewiki.google/repo.
- Disable the CodeWiki link from being displayed for screentests by
adding it to the hidden elements.
Change-Id: Ia5feb913280b8066806e56524bf9d32ce51f0614
Reviewed-by: Jonathan Amsterdam <j...@google.com>
kokoro-CI: kokoro <noreply...@google.com>
Auto-Submit: Ethan Lee <etha...@google.com>
Files:
  • M cmd/frontend/main.go
  • D internal/frontend/depsdev.go
  • A internal/frontend/links.go
  • A internal/frontend/links_test.go
  • M internal/frontend/server.go
  • M internal/frontend/unit.go
  • M static/frontend/unit/main/_meta.tmpl
  • A static/shared/icon/codewiki-logo.svg
  • M tests/screentest/testcases.ci.txt
  • M tests/screentest/testcases.txt
  • M tests/screentest/testdata/testcases.ci/vuln-no-results.want.png
  • M tests/screentest/testdata/testcases.ci/vuln-search.want.png
  • M tests/screentest/testdata/testcases/badge.want.png
  • M tests/screentest/testdata/testcases/license-policy-540x1080.want.png
  • M tests/screentest/testdata/testcases/nav-submenu.want.png
Change size: L
Delta: 15 files changed, 291 insertions(+), 132 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Jonathan Amsterdam
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
  • requirement satisfiedkokoro-CI-Passes: kokoro-CI+1 by kokoro
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: Ia5feb913280b8066806e56524bf9d32ce51f0614
Gerrit-Change-Number: 730880
Gerrit-PatchSet: 19
Gerrit-Owner: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
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