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

28 Коммитов

Автор SHA1 Сообщение Дата
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
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 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