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

1985 Коммитов

Автор SHA1 Сообщение Дата
Jamal Carvalho 1460aecda9 website: ran npm audit fix
Change-Id: Ic26b3fdfd3ce18f1091d136e25bceba0cf2df219
Reviewed-on: https://go-review.googlesource.com/c/website/+/391534
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-03-10 16:48:22 +00:00
Robert Griesemer f5512f03a0 _content/doc: update Go 1.18 release notes
Document field access limitations for type parameters.

Also, remove some superfluous "currently" uses - the
time context is clear from the introductory paragraph
of the respective section.

For golang/go#51576.
For golang/go#47694.

Change-Id: If4c12f95f024894a9efb949dda9341d8ab0dc77e
Reviewed-on: https://go-review.googlesource.com/c/website/+/391279
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-10 00:39:42 +00:00
Mauricio Alvarado c3338c2439 _content: add dark mode styles
Added dark mode styles and images.

For golang/go#34601

Change-Id: I1a4d9599cbe8e3b51380be914cfe1abbc3cd79bb
Reviewed-on: https://go-review.googlesource.com/c/website/+/384874
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-09 19:29:48 +00:00
Dmitri Shuralyov a00eda15b7 _content/doc/go1.18: update expected release date
Go 1.18 is now expected to be released in March 2022.

For golang/go#44513.
Fixes golang/go#51505.

Change-Id: I4f744dc96c6ef5150d7475b51759d5fc5b13633b
Reviewed-on: https://go-review.googlesource.com/c/website/+/390374
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <iant@google.com>
2022-03-07 21:40:38 +00:00
Jamal Carvalho f520785296 internal/web: fix syntax rules hyperlinks
The filepath for the spec document changed and broke
the linkify step.

Fixes golang/go#50915

Change-Id: Ieafe9c665f4063fb9f9ddf74610925f123e2c249
Reviewed-on: https://go-review.googlesource.com/c/website/+/388859
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-03-07 15:05:08 +00:00
Sean Liao 02f43ed976 blog: fix caption formatting
Updates golang/go#38532

Change-Id: Iace87c755b7a7fbc64f0223e092f6e7f8eca06d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/349849
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-07 13:17:15 +00:00
able.lv d63e5b517e _content/solutions/cloud: fix a typo
Replace "packends" with "backends"

Change-Id: I763e0ed6050fdb1124aafb0783611080458e449c
GitHub-Last-Rev: ae2b28cc3f
GitHub-Pull-Request: golang/website#119
Reviewed-on: https://go-review.googlesource.com/c/website/+/375798
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-05 21:27:01 +00:00
Ian Lance Taylor e52779f983 _content/doc/go1.18: mention net/http IDNA change
Based on CL 366955 originally by Timothy Gu.

For golang/go#46001
For golang/go#47694

Change-Id: Ide7711680d651c4cbbb6da13ab33b67cf5e26758
Reviewed-on: https://go-review.googlesource.com/c/website/+/389955
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: DO NOT USE <iant@google.com>
2022-03-04 18:54:54 +00:00
Carlos Amedee 55c2698e3a internal/history: document Go 1.17.8 and Go 1.16.15
Change-Id: I11c6c82488fb2b17c4b444eca5b85aeaa439b7fc
Reviewed-on: https://go-review.googlesource.com/c/website/+/389735
Reviewed-by: Alex Rakoczy <alex@golang.org>
Trust: Alex Rakoczy <alex@golang.org>
Run-TryBot: Alex Rakoczy <alex@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Carlos Amedee <amedee@google.com>
2022-03-03 20:18:44 +00:00
Carlos Amedee 90c3e61b96 _content/doc: add Go 1.18 release notes
Copied from Go commit 2cb9e116d39176bd8a93609c63b175ac09eacea9 CL 388454.
Deleted there in CL 388515.

Updates golang/go#47694

Change-Id: I5f26ce2fc6ec96c5902dbe5838689fd139bcd0e5
Reviewed-on: https://go-review.googlesource.com/c/website/+/388556
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alex Rakoczy <alex@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <amedee@google.com>
2022-03-02 21:28:23 +00:00
Dmitri Shuralyov 42bfd6b6a6 cmd/golangorg: move test case that needs internet to live.txt
One test case added in CL 388016 depends on production resources,
specifically the snippet https://play.golang.org/p/MAohLsrz7JQ.go
served by the production instance of the Go playground.

This would be caught by TryBots where internet access is disabled,
but that didn't happen due to golang/go#51444.

Updates golang/go#51181.
Fixes golang/go#51439.

Change-Id: I4f1c5ea1a6ccad9ae4e5cbb749e3dee0b26731b5
Reviewed-on: https://go-review.googlesource.com/c/website/+/389394
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-02 21:21:45 +00:00
Michael Matloob d10dfbe324 _content/doc/tutorial: add a tutorial for workspaces
Change-Id: I0686121523da9b22666cfbad54821527ac5b8feb
Reviewed-on: https://go-review.googlesource.com/c/website/+/383854
Trust: Michael Matloob <michaelmatloob@gmail.com>
Trust: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2022-03-01 19:33:14 +00:00
Julie Qiu c18706c443 _content/doc/fuzz: add link to OSS Fuzz docs
Change-Id: I433d5947f64e099afe1683f81831eb7a5a7a3294
Reviewed-on: https://go-review.googlesource.com/c/website/+/388415
Run-TryBot: Julie Qiu <julie@golang.org>
Trust: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <iant@google.com>
2022-03-01 15:19:50 +00:00
cuishuang c3d40638f8 _content/blog: fix unavailable link
Change-Id: I8ef3c7d60f72c20c21e80609738772f3805a4c18
GitHub-Last-Rev: ea811c700a
GitHub-Pull-Request: golang/website#132
Reviewed-on: https://go-review.googlesource.com/c/website/+/387074
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-02-28 19:56:27 +00:00
Jamal Carvalho 832feb7309 internal/play: support plain text response
Fixes golang/go#51181

Change-Id: I82f10320e86555a161cbfb5c5b79dfc331017003
Reviewed-on: https://go-review.googlesource.com/c/website/+/388016
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-02-25 21:55:09 +00:00
Meng Zhuo d6638d3d92 _content: document cgo requirement for race detector
The race detector doc doesn't state cgo,
the content is basically as ALTree suggested in issue 51235.

Fixes golang/go#51235

Change-Id: I03356c01f4542e69a02c712063afb77ae68cc90f
Reviewed-on: https://go-review.googlesource.com/c/website/+/386454
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-02-25 04:25:08 +00:00
Chia-Chi Hsu 3962a089fc _content/doc/tutorial: fix number of rows in database-access.md
"Add three rows with values" should be "Add four rows with values".

Change-Id: I82103908292faf95c1b6c62ca57d6f47b0249ccb
GitHub-Last-Rev: 2a02403727
GitHub-Pull-Request: golang/website#126
Reviewed-on: https://go-review.googlesource.com/c/website/+/385594
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-02-18 01:53:23 +00:00
Jamal Carvalho bbc52f685a cmd/screentest: remove download and install tests
The screentests for the download and install will
always fail because cmd/golangorg uses different
sources for data to render those pages on app engine.

Change-Id: I2ca67ba1bc0a830baa6fe1be1f1cd8b8f63ac9c5
Reviewed-on: https://go-review.googlesource.com/c/website/+/385915
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-02-16 15:05:27 +00:00
Jamal Carvalho 2c19c4c8fc internal/screentest: capture response status from redirect
Change-Id: I6c7ae3eb3447c67d30b8dc2c4fb02f331ada15c8
Reviewed-on: https://go-review.googlesource.com/c/website/+/385634
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
Run-TryBot: Jamal Carvalho <jamalcarvalho@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-02-14 18:38:36 +00:00
Jamal Carvalho aeb216c1e4 internal/screentest: fix http status check
URL fragments are dropped from request targets. Stripping
the fragment from the URL ensures we capture the response
status.

Change-Id: I66ed67a23878315076762e4f99332613a4f67723
Reviewed-on: https://go-review.googlesource.com/c/website/+/385201
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-02-11 23:55:50 +00:00
Cherry Mui 3450d37756 internal/history: document Go 1.17.7 and Go 1.16.14
Change-Id: I649cecf14658343425094b123ef3c300638d08a9
Reviewed-on: https://go-review.googlesource.com/c/website/+/384435
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alex Rakoczy <alex@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-10 23:04:01 +00:00
Jamal Carvalho 59536be9fc internal/screentest: test output improvements
Updated test output to improve discoverability
of failed tests.

Change-Id: I4d70873d47f8cd91f613f6a7b529047e4b4fc053
Reviewed-on: https://go-review.googlesource.com/c/website/+/384841
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-02-10 22:36:44 +00:00
Jamal Carvalho 12cc0a88fa internal/screentest: check http status on page load
Requests to URLs are expected to return HTTP Status 200.
To override the expected status code, testcases can use
the status keyword.

Change-Id: Ibe6696fc2fe2a779755ff96dc8c5532c1ce03c66
Reviewed-on: https://go-review.googlesource.com/c/website/+/384840
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-10 22:36:34 +00:00
Roland Shoemaker bff2e91b75 _content/doc/fuzz: add technical details
Adds a page to the fuzzing docs which contains a technical description
of the fuzzing implementation.

Change-Id: I9415548b91e56ad836932da1e61921cbb8086faf
Reviewed-on: https://go-review.googlesource.com/c/website/+/379594
Reviewed-by: DO NOT USE <katiehockman@google.com>
Trust: DO NOT USE <katiehockman@google.com>
Trust: Roland Shoemaker <bracewell@google.com>
Run-TryBot: Roland Shoemaker <bracewell@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-09 04:02:22 +00:00
jiahua wang 5c1de7bed9 _content/doc/tutorial: fix a typo
Fixes golang/go#50853

Change-Id: Ia09043435f23b979a2a0d198318096e6ecf52cb5
Reviewed-on: https://go-review.googlesource.com/c/website/+/381654
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-02-08 23:38:54 +00:00
Ian Lance Taylor 3547304864 _content: change generic min example to index
This avoids importing the constraints package, which is no longer in
the standard library.

For golang/go#50792

Change-Id: I0e0f48d414e87418a1fe95e500bb7629127007cc
Reviewed-on: https://go-review.googlesource.com/c/website/+/383254
Reviewed-by: Eli Bendersky‎ <eliben@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Trust: DO NOT USE <iant@google.com>
Run-TryBot: DO NOT USE <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-08 21:47:17 +00:00
Katie Hockman b7142a0d79 _content/doc/fuzz: describe the nature of a failure
Updates golang/go#51032

Change-Id: Iec7965f8d2823e7918967e0fae8425e0b1cc615e
Reviewed-on: https://go-review.googlesource.com/c/website/+/383454
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <bracewell@google.com>
Trust: DO NOT USE <katiehockman@google.com>
Run-TryBot: DO NOT USE <katiehockman@google.com>
2022-02-08 19:37:47 +00:00
Andrey 777b489be0 _content/doc/tutorial/generics: add indentation inside function
Change-Id: I5648e2da0b708bf35e4406f4dcb49eabe01abf92
GitHub-Last-Rev: 009bc861a3
GitHub-Pull-Request: golang/website#122
Reviewed-on: https://go-review.googlesource.com/c/website/+/381917
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-02-08 17:46:20 +00:00
Eli Bendersky ac99473d6b _content/doc: update generics tutorial to not mention constraints package
Following decision in golang/go#50792

Change-Id: I71d74b4b386aacef5319663c397479cac6feb32f
Reviewed-on: https://go-review.googlesource.com/c/website/+/383694
Reviewed-by: DO NOT USE <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-02-08 16:42:58 +00:00
Jamal Carvalho c4c0da89ae internal/screentest: remove hostname from output file extension
The original motivation to add hostnames to the files
was to make them easier to identify. Now that the origins
can be dynamically set with template variables, it causes
more trouble than it helps.

After removing the extensions, we can support reusing a
single test script for multiple origins. For example:

  compare {{.Origin}}::cache {{.Origin}}

Origin may be set to https://staging-pkg.go.dev or
http://localhost:8080 and share the same set of screenshots.

Change-Id: I2c1811fcb0fa7cca9e3b5feeb362528fd3f07af4
Reviewed-on: https://go-review.googlesource.com/c/website/+/382157
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-02-01 20:36:41 +00:00
Ian Lance Taylor 617d83c5d4 _content/ref/mod: "go 1.16" is the default in go.mod
Fixes golang/go#47662

Change-Id: Ie4d327a48d426ce1cd4a5bd411186143fecf00e1
Reviewed-on: https://go-review.googlesource.com/c/website/+/381895
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: DO NOT USE <iant@google.com>
2022-02-01 20:14:26 +00:00
Michael Matloob 884feaf4b4 _content/ref: update ref/mod for workspaces
Add entries for go.work files and the new go work commands to
golang.org/ref/mod.

For golang/go#45713

Change-Id: I1ad3335f977fad864d75790e31e48ee34e531ff5
Reviewed-on: https://go-review.googlesource.com/c/website/+/379655
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Michael Matloob <michaelmatloob@gmail.com>
2022-02-01 17:07:52 +00:00
Katie Hockman feaf54d44c _content/doc/tutorial: add additional descriptions to fuzz.md
Change-Id: I4278ae598a503d1e036371069f07a1be19e11a93
Reviewed-on: https://go-review.googlesource.com/c/website/+/381794
Run-TryBot: Katie Hockman <katie@golang.org>
Trust: DO NOT USE <katiehockman@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-02-01 17:01:27 +00:00
Russ Cox 663e3e7eda _content: add blog/go1.18beta2
Change-Id: I984c66d758db7103dcaa097bc82f146349634d22
Reviewed-on: https://go-review.googlesource.com/c/website/+/382056
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alex Rakoczy <alex@golang.org>
2022-01-31 20:06:46 +00:00
Rob Pike a26b85f08f content/doc: add an explanatory preamble to Effective Go
Explain that Effective Go is not a living document.
No changes other than one new paragraph in the
introduction.

Fixes golang/go#49937
Update golang/go#28782

Change-Id: I615e48df56313e3d91e8b88b139159f64900db7e
Reviewed-on: https://go-review.googlesource.com/c/website/+/380634
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
2022-01-30 22:05:33 +00:00
Jamal Carvalho 55fb4e21dc internal/screentest: add request blocking keyword to scripts
Scripts can use the block keyword to set URL patterns to block.
Wildcards ('*') are allowed.

While loading a webpage if chrome attempts to load a resource
from a blocked URL the request will fail. This is useful for
blocking things like dynamic badge images from a code coverage
or build indicator service.

Change-Id: Ifbde82d56918928333836b493e993c1ef1054a76
Reviewed-on: https://go-review.googlesource.com/c/website/+/381335
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
Run-TryBot: Jamal Carvalho <jamalcarvalho@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-01-27 23:21:54 +00:00
Ian Lance Taylor 3ff88697a8 _content/blog/why-generics: add note that this uses an old syntax
Also some minor text and formatting updates.

Change-Id: I0716d6714e9558ac744d9929adaa0a92b63e36e3
Reviewed-on: https://go-review.googlesource.com/c/website/+/380574
Reviewed-by: Robert Griesemer <gri@google.com>
Trust: DO NOT USE <iant@google.com>
2022-01-25 00:57:32 +00:00
Rob Pike cf8a562e10 blog: update laws of reflection article
There were a couple of minor things that were slightly wrong due to
changes in the libraries, and the addition of generics makes the meaning
of an interface worth clarifying.

Add an introductory paragraph about generics, and adjust a few
sentences.

No substantive change.

Fixes golang/go#49939

Change-Id: I67fbd28f1a9876158006202bf03ea693265c5cd5
Reviewed-on: https://go-review.googlesource.com/c/website/+/380276
Reviewed-by: DO NOT USE <iant@google.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
2022-01-24 18:22:31 +00:00
Beth Brown 5c6d3e7309 _content/doc/tutorial: fix fuzz.md final steps
main.go modified to import unicode/utf8 and errors packages, discard
returned error. Steps added to import packages and make changes in final steps.

Fixes golang/go#50628

Change-Id: I5dd5fb66256d56eb81bdbb16ba2d5a3fc1ee5dd4
Reviewed-on: https://go-review.googlesource.com/c/website/+/378477
Trust: Julie Qiu <julieqiu@google.com>
Trust: DO NOT USE <katiehockman@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: DO NOT USE <katiehockman@google.com>
2022-01-19 18:54:03 +00:00
Dmitri Shuralyov c5f7fbcc11 _content/talks: delete "presentStyle" template
With no "presentStyle" template defined, the template function with
the same name (defined in the internal/web package) starts to be used
in its place. Unlike the no-op wrapper template, the template function
correctly processes some of the legacy present syntax.

Fixes golang/go#50664.

Change-Id: I8a673e511b326f5c4f8a3a2666a2d1e65b5995ce
Reviewed-on: https://go-review.googlesource.com/c/website/+/379035
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-01-19 17:53:47 +00:00
Jason A. Donenfeld 8066ee90a7 internal/dl: show versions in sorted order in JSON listing
When include=all is used, archived versions (old) and unstable versions
(new) are appended to the list of returned versions. This makes the
order of the list rather awkward: current, old, new. This commit makes
the ordering a bit more natural: new, current, old. However, even like
that, releases will be out of order, because, for example, 1.18rc1 is
new, while 1.17.6 is current, but 1.18beta1 is old. So, this commit
takes care to sort the entire list properly to avoid that. This way, the
entire list is sorted by version. Nothing changes semantically, as users
of the API can still filter out unstable releases using the "stable:
true" field.

This commit also adds a test case, to make sure this behavior doesn't
regress.

Fixes golang/go#50201.
Fixes golang/go#47367.

Change-Id: Ic136197dcdd47aa149601b75ba5152a2006c790a
Reviewed-on: https://go-review.googlesource.com/c/website/+/371934
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Jason Donenfeld <Jason@zx2c4.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-18 17:17:02 +00:00
Jamal Carvalho ec11697842 internal/screentest: log screenshot errors
Adds log output for screenshot errors so they visible
before all testcases complete.

Change-Id: Ida229f256164e16d28fdeedf3671012976659bf3
Reviewed-on: https://go-review.googlesource.com/c/website/+/379135
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-18 16:01:28 +00:00
Jamal Carvalho e26b9f0290 internal/screentest: reduce motion on web pages
Added a stylesheet insertion step that reduces
motion on web pages by speeding up animations
and removing animation delays.

Change-Id: If945f764dfafaebfedce87fa462c5824033808e2
Reviewed-on: https://go-review.googlesource.com/c/website/+/379134
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-18 16:01:17 +00:00
Jamal Carvalho 3bdafedcb3 internal/screentest: update screenshot extensions
The screenshot file extensions are updated such that
when the hostname of the origins for a testcase are
equal, for example when comparing cached screenshots
to live screenshots from the same server, the output
filenames do not collide.

Change-Id: I0b82f94d87912923e734fc30ba457a440ede94f4
Reviewed-on: https://go-review.googlesource.com/c/website/+/378476
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-18 15:59:52 +00:00
Katie Hockman 5cf278daa6 _content/doc/fuzz: add links to new tutorial
Change-Id: I9c8099270a1215bd5b5c3043d2bcc5d097a3dc95
Reviewed-on: https://go-review.googlesource.com/c/website/+/378598
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <iant@google.com>
Trust: DO NOT USE <katiehockman@google.com>
2022-01-14 20:27:14 +00:00
Russ Cox f81f4f7f21 _content: remove some https://go.dev/ prefixes in links
The site is served at both go.dev and golang.google.cn.
In China, only golang.google.cn can serve, so we try to use
relative links to avoid pointing users to the copy they can't access.

Periodically we have to remove prefixes that have crept in.
This commit applies today's round of that.

Change-Id: Iaa169635664d0562a1cccc57c3e02b687b3493e7
Reviewed-on: https://go-review.googlesource.com/c/website/+/378597
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <katiehockman@google.com>
Trust: DO NOT USE <katiehockman@google.com>
2022-01-14 18:05:40 +00:00
Katie Hockman fe93965e6b _content/blog: add link to tutorials in tutorials-go1.18.md
Change-Id: I8a8e3f93eba246f91f2434faa15340dfcb6a4f26
Reviewed-on: https://go-review.googlesource.com/c/website/+/378596
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
2022-01-14 17:48:01 +00:00
Jamal Carvalho cb323198ea {cmd,internal}/screentest: add config for remote debugger url
To have test runs output consistent screenshots across
different systems we allow for the use of a remote
instance of Chrome by providing a url to its debugger
as a flag. For example:

  go run ./cmd/screentest -d ws://localhost:9222

This is useful in a CI/CD environment to control the
chrome version and OS in which screenshots are taken.

Change-Id: I09b2e2d8e3056d7229808a57653d641677fc8cc3
Reviewed-on: https://go-review.googlesource.com/c/website/+/378475
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-14 17:31:54 +00:00
Katie Hockman 31e017b870 _content/blog: fix date on tutorials-go.18.md
Change-Id: Ie926a25fb0d239e716288c647ddb78f771b074f5
Reviewed-on: https://go-review.googlesource.com/c/website/+/378595
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Trust: DO NOT USE <katiehockman@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-01-14 17:28:41 +00:00
Katie Hockman e375924d03 _content: add blog post and new fuzzing tutorial
Change-Id: I533a2bb17f0d0bd09a9372e9852ff50a6e0f9e6a
Reviewed-on: https://go-review.googlesource.com/c/website/+/378594
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
Trust: DO NOT USE <katiehockman@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-01-14 17:10:16 +00:00