Граф коммитов

49 Коммитов

Автор SHA1 Сообщение Дата
Gopher Robot e42a1df17c go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I4e9c1b1e19bfc2ba295ad497b8be1d96429de67f
Reviewed-on: https://go-review.googlesource.com/c/website/+/611955
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-09-09 20:03:18 +00:00
Gopher Robot 89283d8aed go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I8695787cef8733c803a139d70032588082a4017e
Reviewed-on: https://go-review.googlesource.com/c/website/+/603615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-08-06 20:58:11 +00:00
Gopher Robot fa22152f22 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I64501b2dfd01a17d737aa6abc24c402263da8823
Reviewed-on: https://go-review.googlesource.com/c/website/+/597015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
2024-07-07 23:36:48 +00:00
Than McIntosh 7ea058ad10 go.mod: update x/build to CL 596477
Update x/build to pick up changes for new x/oscar repo.

Change-Id: I42cee48d593b5e4b061230a83af0e7f1c1c4eeca
Reviewed-on: https://go-review.googlesource.com/c/website/+/596695
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-03 23:38:58 +00:00
Oleksandr Redko 8d335a83f6 _content/tour: fix content test
- Add missing '// +build' comments for generics examples.
- Add build tags 'OMIT', 'no-run' for solutions examples.
- Move content_test.go to the root because 'go' ignores
packages in the '_content' directory.
- Remove usages of deprecated 'io/ioutil'.

Change-Id: I8e6b717d43df9e2b55e4b796db5b316860f42103
Reviewed-on: https://go-review.googlesource.com/c/website/+/592875
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2024-06-21 18:48:12 +00:00
Gopher Robot 2197f42d6b go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Ibadd72afa67f454bf8707cdd0cfd9cb92ad3538b
Reviewed-on: https://go-review.googlesource.com/c/website/+/590419
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-06-04 19:33:03 +00:00
Dmitri Shuralyov 89cd6982bc cmd/golangorg: add doc/next page to preview draft release notes
The improved release note process is being used starting with Go 1.23.
That means instead of a single doc/go1.23.html draft file in the main
Go repository, doc/next contains a set of release note fragments.
Having small, orthogonal files avoids merge conflicts, and a release
note test requires that release notes are written and included in the
same CL that's adding new APIs. As a result, the set of completed
release notes even before we enter the release freeze is greater than
ever before.

While it's possible to view those fragments using tip.golang.org
(e.g., by visiting https://tip.golang.org/doc/next), reading them
that way isn't practical. The relnote generate tool exists to merge
fragments into a complete Markdown document, and this tool will be
used when eventually moving a complete draft of Go 1.23 release notes
to x/website.

To aid the remaining work of completing the release note draft, this
change adds a dynamic /doc/next page to preview what the relnote
generate tool will produce. Combined with existing functionality of
the -tip flag, it makes https://tip.golang.org/doc/next display a live
preview of the checked-in release notes draft.

It can also be used to preview release note draft locally. For example,
if $HOME/gotip is a Go checkout where one is editing doc/next content:

go run golang.org/x/website/cmd/golangorg@latest -goroot=$HOME/gotip

Will serve a live preview at http://localhost:6060/go.dev/doc/next.
It can be slightly more convenient to refresh a browser without having
to re-run 'relnote generate'.

For golang/go#64169.
For golang/go#65614.

Change-Id: Ie1d3650076421a95a691dd84a554a113dd1187b1
Reviewed-on: https://go-review.googlesource.com/c/website/+/587436
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2024-05-22 18:44:50 +00:00
Dmitri Shuralyov 9e5eadff51 all: update x/build dependency
Pull in latest changes to x/build/relnote. Its functionality
will be used when rendering the tip.golang.org/doc/next page.

For golang/go#64169.

Change-Id: I534dfb2f9b19495488e6025e057a39fea1f0a8d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/587435
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2024-05-22 18:44:46 +00:00
Gopher Robot 2e9b327706 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I673f037a2a647f3db07160cb11727370c091e60e
Reviewed-on: https://go-review.googlesource.com/c/website/+/583618
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-05-06 18:57:17 +00:00
Gopher Robot 64c171f80f go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I08efc65d3443db2c7ccd7b5afe418f9b2e3073be
Reviewed-on: https://go-review.googlesource.com/c/website/+/576718
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-04-04 23:15:17 +00:00
Gopher Robot 2a843f56f0 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I526510973d84343ba669ddfa1b19d9d744f0eec6
Reviewed-on: https://go-review.googlesource.com/c/website/+/569017
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2024-03-05 16:01:41 +00:00
Gopher Robot ab22183b1b go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I4a5aa821a35f3a2f5d4e6adaecc90cf94e405ff8
Reviewed-on: https://go-review.googlesource.com/c/website/+/563337
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2024-02-13 14:34:03 +00:00
Gopher Robot 551a7eb7e1 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I8252d923ad37f6aec612600fba239bb050a67637
Reviewed-on: https://go-review.googlesource.com/c/website/+/555520
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2024-01-12 13:34:05 +00:00
Gopher Robot bf2e41f376 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Ie37c697c9258d06b3564a46dbb359bf0ed556bf0
Reviewed-on: https://go-review.googlesource.com/c/website/+/545257
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2023-11-27 18:54:09 +00:00
Gopher Robot a7a2638b0f go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Ia3f95251c2bfb6fc00dd48d63ff90e10027abe68
Reviewed-on: https://go-review.googlesource.com/c/website/+/540525
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-11-08 23:28:25 +00:00
Gopher Robot db91826d66 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I43f23203a4699d555e46f76b6f13886b38248112
Reviewed-on: https://go-review.googlesource.com/c/website/+/533379
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-10-06 14:02:11 +00:00
Michael Pratt 914e496b73 go.mod: update x/build to CL 532577
For golang/go#61940.

Change-Id: I5e7bce3ee2e8fb0824772496b86f4bcc16cdca72
Reviewed-on: https://go-review.googlesource.com/c/website/+/533295
Reviewed-by: Heschi Kreinick <heschi@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
2023-10-05 20:19:29 +00:00
Dmitri Shuralyov 8a1e138e64 cmd/locktrigger: migrate to cloud.google.com message types
Done with:

go run cloud.google.com/go/internal/aliasfix/cmd/aliasfix@latest .
go mod tidy

As suggested in the package deprecation note¹.

¹ https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudbuild/v1#pkg-overview

Change-Id: I5bc13274728839f3ef4df9aadda9634f46e1968c
Reviewed-on: https://go-review.googlesource.com/c/website/+/531701
Auto-Submit: 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>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-10-02 18:37:36 +00:00
Gopher Robot bf1f8eb5d7 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I16493b18caa8afa9ff097f8c64b569197bcd2ef0
Reviewed-on: https://go-review.googlesource.com/c/website/+/525640
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-06 09:42:19 +00:00
Dmitri Shuralyov 6a2a7e9b43 all: update esbuild dependency
Current esbuild version fails to build on Plan 9.
Pull in a newer version where that's been fixed.

Updates evanw/esbuild#3289.
For golang/go#61698.

Change-Id: Ie12bf81df57d22306857b6f51bb426cfa2a47cec
Cq-Include-Trybots: luci.golang.try:x_website-gotip-linux-amd64-misccompile
Reviewed-on: https://go-review.googlesource.com/c/website/+/516256
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-08-07 15:22:14 +00:00
Carlos Amedee 6261a22272 all: updating golang.org/x/build dependency version
The version is being updated to include CL 492755.

Change-Id: Iec5a8cdc420f1151b6d14d7bccd409056540a1b6
Reviewed-on: https://go-review.googlesource.com/c/website/+/492775
Run-TryBot: Carlos Amedee <carlos@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-05-05 15:22:16 +00:00
Hana (Hyang-Ah) Kim 9a3b5755f5 go.mod: fix vulnerable dependencies
GO-2023-1571 golang.org/x/net/http2@v0.3.0
GO-2022-0603 gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b

Change-Id: I3aa15073ebc91c0e6db00e03c7fb74d8cb6f39f2
Reviewed-on: https://go-review.googlesource.com/c/website/+/487115
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-04-24 20:02:05 +00:00
Matthew Dempsky bdf3f823b5 all: update x/build dependency, again
The previous update commit accidentally sync'd x/build to 24f89e0
instead of 7be615f.

Change-Id: Ifb52545590e95350da78e09cc397807b188cea6f
Reviewed-on: https://go-review.googlesource.com/c/website/+/463496
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-01-25 23:41:04 +00:00
Matthew Dempsky 1a69cb67e9 all: update x/build dependency
For pkgsite-metrics repo (CL 463455).

Change-Id: I6e794c845d163ea1af35341a4da55955316b96ad
Reviewed-on: https://go-review.googlesource.com/c/website/+/463495
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-01-25 19:25:55 +00:00
Bryan C. Mills 937656afc1 all: update golang.org/x dependencies to latest
Fixes golang/go#57217.

Change-Id: I58e7f310051613c5052d2352d50e3db99a411088
Reviewed-on: https://go-review.googlesource.com/c/website/+/456517
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-12-13 14:46:58 +00:00
Jamal Carvalho 995577f14f internal/screentest: add support for writing test output to GCS
Test scripts parse output locations that begin with gs://
as Cloud Storage buckets. When a bucket is used diff
images and cached screenshots are written to and read from
GCS objects.

Change-Id: I985ccf301ada1bfde82e4e61e1ddf724a824fcb6
Reviewed-on: https://go-review.googlesource.com/c/website/+/373720
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-01-04 19:30:38 +00:00
Jamal Carvalho 56b50be279 website: create typescript file handler
To allow for the use of TypeScript in go.dev pages
added a handler for TypeScript files served from
_content/ts. Files requested from this directory
are first transformed from TypeScript to JavaScript
using github.com/evanw/esbuild. JavaScript output is
written to a simple cache so subsequent requests skip
the tranformation step.

Change-Id: I0a161ce3dd20eaddddd5d369d359c65c90d9f607
Reviewed-on: https://go-review.googlesource.com/c/website/+/373718
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Rakoczy <alex@golang.org>
2021-12-29 17:53:46 +00:00
Jamal Carvalho 4e7a786f45 internal/screentest: add package to compare screenshots web pages
As we clean up page styles post golang.org and go.dev merge,
and begin to implement the dark theme, we can use screenshot
testing to check that code changes don't result in unintended
style or html content changes.

Change-Id: Ia65f98f133df0f4a9fa3f382fd30c2455d65d73d
Reviewed-on: https://go-review.googlesource.com/c/website/+/371435
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2021-12-16 14:37:07 +00:00
Russ Cox c386b489b9 cmd/locktrigger: add fix for Cloud Build race
When a project uses “continuous deployment powered by Cloud Build”,
the deployment is a little bit too continuous: when multiple commits
land in a short time window, Cloud Build will run all the triggered
build jobs in parallel. If each job does “gcloud app deploy”, there
is no guarantee which will win: perhaps an older commit will complete
last, resulting in the newest commit not actually being the final
deployed version of the site. This should probably be fixed in
“continuous deployment powered by Cloud Build”, but until then,
locktrigger works around the problem.

Use locktrigger in cmd/golangorg/cloudbuild.yaml to ensure that
when multiple commits race, the newest one always runs its
go-app-deploy.sh last.

Change-Id: I5ca340250d0a3b7853fc478d35caffdd0163bb0f
Reviewed-on: https://go-review.googlesource.com/c/website/+/368365
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-12-06 20:42:35 +00:00
Julie Qiu d4902dd0e1 go.mod,go.sum: update x/build
x/build is updated so that golang.org/x/vuln redirects correctly.

Change-Id: I61feab1a12ff5a2e4734f14e7546b29c0d691a57
Reviewed-on: https://go-review.googlesource.com/c/website/+/360720
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Website-Publish: DO NOT USE <dmitshur@google.com>
2021-11-02 16:29:07 +00:00
Russ Cox 64bfe057e6 tour: stop being a submodule
This brings tour in line with the other websites in this repo,
which will help smooth the eventual merge.

Change-Id: I54a0954d431fa511ac26992e580589fe1b87b030
Reviewed-on: https://go-review.googlesource.com/c/website/+/323897
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-16 18:38:47 +00:00
Russ Cox 96b571dae1 go.dev: stop being a submodule
Now that x/website is Go 1.15-safe,
we can make go.dev a plain subdirectory
and use x/website's copy of the template packages
instead of the go.dev copy.

Change-Id: I55a1c3d47b6a96cedfd6eab260533d4e4b28ea88
Reviewed-on: https://go-review.googlesource.com/c/website/+/323893
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-16 18:38:33 +00:00
Alexander Rakoczy 8e455e2223 all: update x/build version for vulndb
See instructions at https://golang.org/wiki/CreatingSubRepository

For golang/go#45519

Change-Id: I4765a5be426ff4315fea8534d250696dccb7317e
Reviewed-on: https://go-review.googlesource.com/c/website/+/312732
Run-TryBot: Alexander Rakoczy <alex@golang.org>
Trust: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-04-23 15:19:34 +00:00
Russ Cox aefff79d07 content/static: use embed and io/fs
This lets us delete the generated static.go.

For golang/go#41102

Change-Id: Ie09f34a83f114592eec4ba2dd9263285169374ae
Reviewed-on: https://go-review.googlesource.com/c/website/+/291690
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-02-16 02:04:16 +00:00
Russ Cox 546f845b33 go.mod: update to use latest x/tools
go get golang.org/x/tools@123adc
	go mod tidy

This brings in an io/fs-to-vfs adapter and automatic
Markdown conversion in the godoc package, so that
the HTML does not need to be generated during makestatic.

Change-Id: I129ecbb4b7b16e130ddc0376bb85bccf12e74e22
Reviewed-on: https://go-review.googlesource.com/c/website/+/291689
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
2021-02-16 02:04:14 +00:00
Dmitri Shuralyov a9012f5bd5 website: update to golang.org/x/tools@v0.1.1-0...-61406578
Bring in the godoc fix made in CL 289089 with:

	go get golang.org/x/tools/godoc@61406578735f11efca21e2be93800cf530d25ecb
	go mod tidy

Fixes golang/go#44178.
Updates golang/go#44081.

Change-Id: Icaee037626e93e6fc5939b163760ad11873a3f0b
Reviewed-on: https://go-review.googlesource.com/c/website/+/290609
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-02-10 22:46:28 +00:00
Russ Cox b323e46427 website: update to tools@97606e32
The other changes in go.mod and go.sum are implied by the updated tools.

Fixes golang/go#40665.

Change-Id: I874c839d64c7cec21a40278bb47b5f686d766f99
Reviewed-on: https://go-review.googlesource.com/c/website/+/251118
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-08-27 20:30:11 +00:00
Andrew Bonventre 4ae8a49789 cmd/admingolangorg: add command serving an admin interface
This change re-enables the /s/ link shortener admin interface,
running as its own App Engine service on the go111 runtime,
which still supports the “login: admin” option in app.yaml.

+ The golangorg build constraint on the internal/memcache and
  internal/short packages is removed to allow easy import
+ A new function, AdminHandler is introduced in the short package
  to allow for registering the handler outside of it
+ Some page cleanup to leverage modern HTML and JS capabilities,
  obviating the need for jQuery, which has been removed
+ Clients for Redis and Cloud Datastore have been updated to
  the latest versions

Fixes golang/go#29988

Change-Id: If6ca75e85e16a7d86bb5dafcf08b27d2dc36f530
Reviewed-on: https://go-review.googlesource.com/c/website/+/238545
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-06-18 01:33:28 +00:00
Dmitri Shuralyov 050186bdd1 cmd/golangorg: add golang.org/x/pkgsite repository
Allow golang.org/x repos to opt-in to use pkg.go.dev for documentation.
The golang.org/x/pkgsite repository is the first one to use it.

Update to current golang.org/x/build version and regenerate:

	go get golang.org/x/build/repos@92427f67eca1ac8f769c740f272196f368082630
	go mod tidy
	go generate ./...

Fixes golang/go#39150.
For golang/go#36747.
For golang/go#36106.

Change-Id: Ia91725c12546c4e7467601d951144af3cb1e6863
Reviewed-on: https://go-review.googlesource.com/c/website/+/234678
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
2020-05-20 14:40:36 +00:00
Jay Conrod 8f9b7478f4 markdown: add markdown rendering for doc/modules.md
Using github.com/yuin/goldmark for Markdown rendering. Rendering only
happens when ./content/static is generated. ./cmd/golangorg does not
need to render anything on request.

Updates golang/go#33637

Change-Id: I68c80b1ed6543f0985848c6e5a58a07da05c972d
Reviewed-on: https://go-review.googlesource.com/c/website/+/218517
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-02-14 19:29:36 +00:00
Brad Fitzpatrick 12a8390500 cmd/golangorg: remove duplicate list of repo names from the /x/ handler
Also, add tests.

This also removes the golang.org/x/codereview redirect because
code.google.com and our Mercurial repository are long dead.

Updates golang/go#36047

Change-Id: I0aacbe5a963b0edeea2dd2f1b2e2ad6a2f1f7319
Reviewed-on: https://go-review.googlesource.com/c/website/+/210744
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-12-13 22:53:24 +00:00
Jay Conrod efeb14978e cmd/golangorg, content: serve /doc from content/static/doc before GOROOT/doc
In the "/doc" directory, files are now served from the
content/static/doc, then from GOROOT/doc (where GOROOT is either a zip
file or the GOROOT directory).

This allows documentation to be moved to golang.org outside of the
normal Go release cycle. For example, this CL moves (but does not
modify) doc/docs.html here. Documentation that is tied to the Go
release cycle (for example, doc/spec.html) will not be moved.

Updates golang/go#33637
Updates golang/go#29206

Change-Id: I5f1c577e0ffddc3418653bdd9b0cc36cf79e3fe1
Reviewed-on: https://go-review.googlesource.com/c/website/+/197638
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-30 22:43:31 +00:00
Bryan C. Mills 00e97558e1 all: upgrade dependencies on google.golang.org/api and go.opencensus.io
The older versions impose transitive dependencies on
git.apache.org/thrift.git, which has since been removed.

Commands run:

	go get -d google.golang.org/api go.opencensus.io
	go mod tidy
	go test ./...

Updates golang/go#34016

Change-Id: I32f4926cac55d630febd9d4a4412eeb99ed9878e
Reviewed-on: https://go-review.googlesource.com/c/website/+/193039
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-09-03 19:23:46 +00:00
Bryan C. Mills 6a9ae81949 go.mod: add go version directive
(I mostly just wanted to make a trivial change to this repo to clear
out the failure cells for misconfigured builders on the landing page
of https://build.golang.org.)

Updates golang/go#31567

Change-Id: I2d779a143c711e86fb2f34451d7398d3514623ae
Reviewed-on: https://go-review.googlesource.com/c/website/+/192559
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-08-30 19:22:50 +00:00
Andrew Bonventre dd72903510 go.mod: update x/tools dependency
Fixes #32151

Change-Id: I74c14903902ace96d2ddb363c3bbb0c74818b4f8
Reviewed-on: https://go-review.googlesource.com/c/website/+/178237
Reviewed-by: Katie Hockman <katie@golang.org>
2019-05-20 21:42:42 +00:00
Dmitri Shuralyov c7db086a28 internal/env: use golangorgenv package from x/tools
This change de-duplicates the same configuration used between
the previous x/tools/godoc/env package and x/website's own
internal/env package. It does so by using the new golangorgenv
package.

This makes it possible to remove the old GODOC_PROD and
GODOC_ENFORCE_HOSTS env vars from app.prod.yaml.

The IsProd configuration value was very generic and yet being
used only in one place. Replace it with a more targeted one.
The new name does a better job of communicating what the
implications of setting or not setting it are.

Apply the same change to logic of googleCN as in CL 165459.

Update the required version of the x/tools module to a newer version
that includes CL 160837, which is required for this change.

Starting with this change, we're changing the x/website policy in that
it's now allowed to start using newer versions of subrepos from the
master branch, rather than only using the release-branches of subrepos.
This is in line with the goal of making x/website more self-contained
and less constrained by the Go release schedule.

Updates golang/go#29206

Change-Id: If8847e9276fb18e3ded56fabbf915cdd19176699
Reviewed-on: https://go-review.googlesource.com/c/website/+/165837
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-03-29 17:21:28 +00:00
Channing Kimble-Brown d0344d227f website: update subrepos to use release-branch.go1.12
This CL makes sure that each of the x subrepos is using their 1.12
branches since Go 1.12 RC1 has been released and the final version
will follow in the coming weeks. Using Go 1.12 now will be easier
than downgrading to 1.11 for a couple weeks and then upgrading again
and undoing all of those changes.

Commands run (using version go1.12rc1  of the go command):

  go get golang.org/x/crypto@release-branch.go1.12 \
           golang.org/x/net@release-branch.go1.12 \
           golang.org/x/sys@release-branch.go1.12 \
           golang.org/x/text@release-branch.go1.12 \
           golang.org/x/tools@release-branch.go1.12
  go mod tidy

'go test ./...' passes when run from the
repo root.

Updates golang/go#29206

Change-Id: I1c46d8b80eba5d438864acb3cd5a3eee1b97dc3e
Reviewed-on: https://go-review.googlesource.com/c/162834
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-02-19 21:35:06 +00:00
Channing Kimble-Brown 1459be3397 cmd/golangorg, internal: use newly copied x/website/internal packages
Now that the internal directory contains copies of the packages
from x/tools/godoc the import paths and dependencies can refer
to accessible files. The build now works for both the app engine
and non app engine configurations.

Updates golang/go#29206

Change-Id: I3ac8070b8a3c01d0ca40e3f5586d05fc9b5bb8ff
Reviewed-on: https://go-review.googlesource.com/c/159918
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
2019-01-29 15:17:29 +00:00
Channing Kimble-Brown d25929e750 website: use modules
Now the website is using modules, specifically using x/tools version
v0.0.0-20190124215303-cc6a436ffe6b to ensure that the website will
continue to work.

Also minor change to rename README.golangorgserver-app as README.golangorg-app
to reflect the current name of the website binary.

Updates golang/go#29206

Change-Id: I284de2152093ac0a6fcdecbfa185d091435c5691
Reviewed-on: https://go-review.googlesource.com/c/159897
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-01-28 21:39:59 +00:00