aboutsummaryrefslogtreecommitdiff
path: root/_content/site.tmpl
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2025-07-02 16:14:14 -0400
committerAlan Donovan <adonovan@google.com>2025-07-08 15:46:03 -0700
commit1aad670007bd8844a4bb16974f6f3ef6b134a4a7 (patch)
tree000eab46cb5c80a8d2c1e6be86dd2bb9a764e5a2 /_content/site.tmpl
parent1a9dcf1e34926a03e150cd0839586ec9a2de0f11 (diff)
downloadgo-x-website-1aad670007bd8844a4bb16974f6f3ef6b134a4a7.tar.xz
cmd/golangorg: serve gopls docs at go.dev/gopls
The go.dev/gopls endpoint serves the gopls/doc directory at the latest release of gopls; the tip.golang.dev/gopls endpoint serves the latest x/tools commit. The GOLANGORG_LOCAL_X_TOOLS environment variable specifies a local directory, overriding the use of git, for previewing local doc changes. Also, a command to recursively check links within the go.dev/gopls subtree. Fixes golang/go#68977 Change-Id: I5d92e6f0e5fdbed721a57f0a1ace2ac98e562fc8 Reviewed-on: https://go-review.googlesource.com/c/website/+/685635 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to '_content/site.tmpl')
-rw-r--r--_content/site.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/_content/site.tmpl b/_content/site.tmpl
index 5fb34524..081986de 100644
--- a/_content/site.tmpl
+++ b/_content/site.tmpl
@@ -479,6 +479,13 @@
<i>This content is part of the <a href="/wiki/">Go Wiki</a>.</i>
</p>
{{end}}
+{{if strings.HasPrefix .URL "/gopls/"}}
+<hr>
+<p>
+<i>The source files for this documentation can be found beneath <a href="https://cs.opensource.google/go/x/tools/+/master:gopls/doc/">golang.org/x/tools/gopls/doc</a>.</i>
+</p>
+{{end}}
+
</article>
{{end}}