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

2642 Коммитов

Автор SHA1 Сообщение Дата
Russ Cox b52edba3f8 all: fix and test for references to github.com/golang/go/issues and wiki
Insist on the canonical /issue/ and /wiki/ links instead.

Change-Id: I7a2eedda69bc3fcd11466722a41f00c9dbaf283f
Reviewed-on: https://go-review.googlesource.com/c/website/+/550323
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>
2023-12-20 17:31:44 +00:00
Russ Cox 5f31ab0a4d _content: add "Go Wiki:" to <title> tag on wiki pages
We already add it to the actual <h1>. Add to the title too.

Change-Id: I9cbb3d0f35a2a49d63469075f9e5cb38167de88c
Reviewed-on: https://go-review.googlesource.com/c/website/+/550136
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-12-15 20:45:51 +00:00
Russ Cox 277b202ae2 cmd/golangorg: fix cloudbuild.yaml
For not having been able to run this before submitting,
I was *so* close.

For golang/go#61940.

Change-Id: Ifb14b1ec35f731e7e886956ad422f92122625a38
Reviewed-on: https://go-review.googlesource.com/c/website/+/550135
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-12-15 03:23:28 +00:00
Russ Cox e2dd66fc34 _content: serve wiki pages on go.dev
The wiki pages have been copied to go.googlesource.com/wiki
and will be code reviewed using Gerrit, like other Go repos.
Unlike other Go repos, self-review will be permitted, and
there is no requirement for Googlers to be involved to make a change.
These relaxations are possible because the wiki has no production code.
The set of wiki +2'ers is a superset of the usual code +2'ers.

Fixes golang/go#61940.

Change-Id: I01823720091fbaa24e95e9c82abeaadba867a17c
Reviewed-on: https://go-review.googlesource.com/c/website/+/518297
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>
2023-12-15 02:06:41 +00:00
Alan Donovan 76936b10b9 _content/blog: deadcode blog post
The first draft was reviewed in https://go.dev/cl/540477.

Change-Id: Ief0b42edd98b9165d0fb8fe034fc9d005c92666d
Reviewed-on: https://go-review.googlesource.com/c/website/+/547981
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
2023-12-12 20:27:02 +00:00
Russ Cox a5588a9e42 cmd/golangorg: fix security redirect loop
Fixes golang/go#64672.

Change-Id: I5355a1dc9993ef0471c4787f4964e45519a6f6dc
Reviewed-on: https://go-review.googlesource.com/c/website/+/549215
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-12-12 17:46:32 +00:00
Mauri de Souza Meneguzzo fc3ac592e3 _content/doc/articles/race_detector: document linux/s390x support
Support for linux/s390x was added in Go 1.19.

Change-Id: I939601ad707da5d6a81ba85662b1ed37b0feccbb
GitHub-Last-Rev: 837e2a8c06
GitHub-Pull-Request: golang/website#262
Reviewed-on: https://go-review.googlesource.com/c/website/+/544477
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2023-12-08 16:11:53 +00:00
Russ Cox 0a7f378581 cmd/golangorg: check for invalid or broken links in served HTML
Test that links are to /foo not https://go.dev/foo
and also check that the links actually point at real pages.
Manually fix problems that the test found.

For golang/go#37047.

Change-Id: I825eec3c2cadb9d259caff51cd893f3023ab533a
Reviewed-on: https://go-review.googlesource.com/c/website/+/548059
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-12-08 03:23:52 +00:00
Russ Cox f74533cb3d _content: replace https://blog.golang.org/ links with /blog/
Global search and replace in HTML for href="https://blog.golang.org/
and in Markdown for ](https://blog.golang.org/

Change-Id: Ife69e89a42a631fa5c8babd07201ed0d7796eb0e
Reviewed-on: https://go-review.googlesource.com/c/website/+/548062
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-12-08 03:23:27 +00:00
Russ Cox 94530e9339 _content/talks: fix many stale or broken links
Change to not use https://go.dev/ directly in the link,
preferring relative links. Also fix many stale or broken links.

Makes talks safe for upcoming link-checking test.

Change-Id: I9c19e052b4df842561c3c153be630c99102a790c
Reviewed-on: https://go-review.googlesource.com/c/website/+/548061
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
2023-12-08 03:23:25 +00:00
Russ Cox 2d2fc5b9cb _content: rewrite links to https://go.dev/foo to /foo
We use /foo consistently so that people browsing on
golang.google.cn are not redirected to go.dev.

This CL is completely mechanical, replacing

	href="https://go.dev/ -> href="/

in HTML and replacing

	](https://go.dev/ -> ](/

in Markdown.


Change-Id: I8ac732d672075600c8e53c46787205454b196850
Reviewed-on: https://go-review.googlesource.com/c/website/+/548058
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-12-08 03:23:23 +00:00
Russ Cox 90162a8e6f _content: move security to doc/security, with redirects
go.dev/security made sense as a URL when it was the security policy,
which might be considered not quite user-facing documentation.
But now it has grown into lots of definitely user-facing documentation,
so it should be in /doc with all the other user docs.

Move /security to /doc/security with redirects.

Change-Id: I4747bbd0d1c110a4c7f0ae2fe0098326cc8637b8
Reviewed-on: https://go-review.googlesource.com/c/website/+/548119
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-12-08 03:22:56 +00:00
Russ Cox 0ad6f295fa _content: move testing/coverage to doc/build-cover, with redirects
By default documentation should be in doc/.
There is no strong reason to keep testing in its own tree,
so move the one file here, /testing/coverage/,
to doc/build-cover, which better describes what
this is (building with coverage, as opposed to go test -cover).
Add a redirect to keep existing links working.

Change-Id: Ic3a3dfa9ae98788a0a1558bac0ce3934b1ead815
Reviewed-on: https://go-review.googlesource.com/c/website/+/548118
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-12-08 03:22:54 +00:00
Russ Cox 0caee2ac5a _content: redirect /doc/tos to /tos
Unclear why we have two; drop to one.

Change-Id: I9a8a75deb21a669f821e596922e5fc9e6777ba80
Reviewed-on: https://go-review.googlesource.com/c/website/+/548117
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-12-08 03:22:12 +00:00
Russ Cox fbf6bcf226 _content/e: delete
We do not agree that this is the right approach for these pages,
so delete them to head off any links to them.

Change-Id: Ifdd6d1ddacb3296238c3d2f4261854a986e6e987
Reviewed-on: https://go-review.googlesource.com/c/website/+/548116
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
2023-12-08 03:22:09 +00:00
Carlos Amedee 0b9a73dea9 internal/history: document Go 1.21.5 and 1.20.12 releases
Change-Id: I63f25161b6a65be28c85faba67a0c8bf87f63dc8
Reviewed-on: https://go-review.googlesource.com/c/website/+/547535
Commit-Queue: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-12-05 18:22:47 +00:00
Todd Kulesza 7d8d2df710 _content/blog: add 2023 H2 survey results
Change-Id: Ia31e363ca6c7389bcf11a2709c0e9466033fc96c
Reviewed-on: https://go-review.googlesource.com/c/website/+/545856
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Run-TryBot: Todd Kulesza <tkulesza@google.com>
Auto-Submit: Todd Kulesza <tkulesza@google.com>
Commit-Queue: Todd Kulesza <tkulesza@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cameron Balahan <cbalahan@google.com>
2023-12-05 16:19:19 +00:00
Dmitri Shuralyov 2ad1d0f281 _content: fix Markdown link in rebuild.html
This page has .html extension, not .md, so use an HTML link.

Change-Id: Ifd5646c8b2875c805ce611ea8e2885b89136223f
Reviewed-on: https://go-review.googlesource.com/c/website/+/546695
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-12-01 22:49:21 +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
Jonathan Amsterdam 4c30940f61 _content/doc/go1.8: re-add reserved GOOS=zos value mention
For golang/go#64169.

Change-Id: Iac58322c3bdd20a86e5492e5cdbb8e92182962a6
Reviewed-on: https://go-review.googlesource.com/c/website/+/542615
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-11-15 18:29:49 +00:00
Jonathan Amsterdam 94d899bc85 _content/doc: change relnote definition lists to headings
Since 1.7, the "Minor changes to the library" second has used
a definition list to describe the changes to each package.

Use level 4 headings instead. This removes one feature
that is not CommonMark-compliant. It paves the way for
using a CommonMark-compliant Markdown parser and renderer
for both display and generation of release notes.

For golang/go#64169.

Change-Id: I2327499971a2db4eee06ef35e3e41cd0d2f953b3
Reviewed-on: https://go-review.googlesource.com/c/website/+/541976
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-11-15 11:30:05 +00:00
Jonathan Amsterdam 807d4851b0 _content/doc: remove html release notes
Now that the notes are in Markdown, we don't need the html files.

For golang/go#64169.

Change-Id: I25f0b636ed4101c38966a2b7d97ec5e5e3cb827e
Reviewed-on: https://go-review.googlesource.com/c/website/+/541975
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-11-15 11:29:58 +00:00
Jonathan Amsterdam efdc4abaaa _content/doc: use https in relnote links
Change "http:" URLs to "https:".

Change-Id: I39bddf76aa8696244208c755e5c0c7972f2e78a4
Reviewed-on: https://go-review.googlesource.com/c/website/+/541495
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-11-13 15:11:49 +00:00
Jonathan Amsterdam 08e88df6cf _content/doc: convert go1 release notes to markdown
The first set of release notes is a template.
I converted it as follows:

  1. Run html2md.
  2. That escaped ` and * in the template function calls, so
     I manually removed the escapes.
  3. I made some small tweaks to avoid `<` being double-escaped
     so it rendered as `&lt;`.

The remaining diffs are due to "fancy" quotation marks and
apostrophes, as mentioned in the previous CL.

Change-Id: I085f5d141d63fbb751bffeec4dca760d1fd15464
Reviewed-on: https://go-review.googlesource.com/c/website/+/540295
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-11-13 15:11:42 +00:00
Jonathan Amsterdam df570c7a65 _content/doc: convert most release notes to Markdown
Add Markdown conversions for all release notes except the first to the
content for the go.dev site. Because the site prefers .md to .html
files, these files will be served even though the .html files still
exist.

This CL omits the first release notes file (go1.html) because it is a
template. None of the others need template expansion. We will convert
go1.html in a followup CL.

The goal in this CL was to minimize diffs. We compared the rendering
of each Markdown file with the live site using cmd/screentest
to make sure there were no major differences. Later CLs can make
changes to the formatting, for example by replacing definition
lists with level-4 headings, but we found it was easier to find
serious conversion issues this way.

To get the diffs, run
    go run ./cmd/screentest ./cmd/screentest/testdata/relnotes.txt
from the repo root.

Some diffs still exist:

- The Markdown renderer used by the site replaces characters like "
  and ' with their "fancier" forms outside of code. The original HTML
  files used the ASCII characters. Most of the differences are due
  to this.

- The Markdown renderer expands tabs to 4 spaces, where the browser
  (at least Chrome) formats them with 8. The difference can be
  seen in code blocks (which look better in Markdown).

- In go1.18, there is a very slight bit of extra space in the HTML
  that produces what looks like a large diff. There was no easy
  way to fix the spacing.

We converted the files using a slightly modified version of
github.com/rsc/tmp/html2md. We then sometimes hand-edited the files
when it didn't seem worth writing code to address the diff.

We had to change the "id" attribute for a heading in seven places,
because the attribute value contained a '/' or ' ' and the Markdown
renderer doesn't accept "id"s with those characters. We replaced the
offending characters with '_'. The change means that if we deploy
from this CL, links to those headings will break temporarily. Fixing
this now would involve forking all or a part of Goldmark, and we have
a better solution. Russ Cox has written a much smaller and simpler
markdown parser and renderer. Since we control it, we can have it
handle "id" attributes with spaces and slashes. We will replace
Goldmark with it eventually. But first we have to replace definition
lists with headings, because Russ's parser doesn't handle definition
lists. (None of the other Markdown files on the site use them.)

For reference, the altered heading IDs are:

- go1.13: crypto/ed25519
- go1.14: hash/maphash
- go1.15: time/tzdata
- go1.17: runtime/cgo
- go1.17: go run
- go1.18: debug/buildinfo
- go1.20: crypto/ecdh

Change-Id: Ibe02c8af2604908c3fd47a9674a4df01b128ff57
Reviewed-on: https://go-review.googlesource.com/c/website/+/539755
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-11-13 15:11:35 +00:00
Russ Cox 12c78e6028 _content/blog: add 14years post
Happy birthday Go!

Change-Id: I5c36bdbcd47af86d52e7efdd544aa31d5e4e0311
Reviewed-on: https://go-review.googlesource.com/c/website/+/541055
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
2023-11-10 15:56:21 +00:00
Jonathan Amsterdam 42c7c5d758 cmd/screentest,internal/screentest: add flag to run subset of tests
Add a -run flag to screentest, similar to the one for `go test`,
so the user can run only one or a few tests.

I found this useful when converting release notes to markdown.

Change-Id: I13efe9c5e95b4c939ce8d1b9442f723d51c04e05
Reviewed-on: https://go-review.googlesource.com/c/website/+/539497
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-11-10 12:12:18 +00:00
Jonathan Amsterdam 91adbeedb9 cmd/screentest,internal/screentest: add ints function, release notes tests
This CL is preparation for converting release notes to Markdown.
We want to use the screentest tool to help us minimize changes.

- internal/screentest: add a template function to generate a sequence
  of integers

- cmd/screentest/testdata: add relnotes.txt, which has a test for
  every release note.

Change-Id: Ibeb2419637bc73d93b88d4c378f5396967d3d70f
Reviewed-on: https://go-review.googlesource.com/c/website/+/539496
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-11-10 12:00:19 +00:00
Russ Cox b8642e1f17 _content/doc/codewalk: fix more js problems
The scrolling logic really needs the full page to fit in a browser window.
Do that by hiding the huge footer entirely.
Also fix a bug that was keeping the selected file name from displaying.

Change-Id: I641e7b1de9fc7a512f79e020ecdaa727e67d9810
Reviewed-on: https://go-review.googlesource.com/c/website/+/535275
Reviewed-by: Eli Bendersky <eliben@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-11-09 07:17:35 +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
Heschi Kreinick 579683a2b7 internal/history: document Go 1.21.4 and 1.20.11 releases
Change-Id: Id5deb52b58464da68bb47599c1ed82a32944ddf6
Reviewed-on: https://go-review.googlesource.com/c/website/+/540298
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-11-07 17:57:17 +00:00
Dmitri Shuralyov 3bf2b07e90 _content/doc/go1.8: document reserved GOOS=zos value
Mention its existence retroactively for posterity, similarly to how the
reserved GOOS=hurd value was documented in the Go 1.12 release notes.

For golang/go#17528.
For golang/go#17929.

Change-Id: Ia574d856f1fca8b387c9f25530843cc874f525b7
Reviewed-on: https://go-review.googlesource.com/c/website/+/537916
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-11-06 16:49:50 +00:00
Jonathan Amsterdam fa86b70e02 internal/web: allow markdown files to turn off templates
If a markdown file has `template: false` in its metadata,
it will not be treated as a template.

Change-Id: I81599ea02b05ff7693f5f816293433df4988b64c
Reviewed-on: https://go-review.googlesource.com/c/website/+/537497
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-11-01 12:26:52 +00:00
Rida Dzhaafar e4467a2baa doc/effective_go: fix broken link
Change-Id: I99b9be77dd665be634cf49a834bc0f82e9cce45e
GitHub-Last-Rev: 5d01712aae
GitHub-Pull-Request: golang/website#257
Reviewed-on: https://go-review.googlesource.com/c/website/+/535495
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-10-18 19:57:56 +00:00
Russ Cox b9a1f70fd8 _content/doc/codewalk: fix code iframe size
This was broken at some point in the transition to the new site.
The iframe sizer was failing to run because '#footer' was not resolving.
If we fix it, then we have the problem that the "footer" is enormous
and we don't want to leave room for it on the screen anymore,
so just zero out that part of the computation.

This makes the codewalks viewable again.

Change-Id: I4080063bdb8988eeaf786e0f579e6e0877d97cb5
Reviewed-on: https://go-review.googlesource.com/c/website/+/534859
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
2023-10-13 17:38:59 +00:00
Russ Cox 13bd8e0219 _content: add Go fonts back for go.dev/blog/go-fonts
go.dev/blog/go-fonts is meant to render using the Go fonts,
but in the move from x/blog to x/website, I dropped those
files accidentally, because they were in _static instead of _content.
Bring them back, properly linked from the fonts blog post.

Change-Id: Ia96b12df95f968357c87d8423d4ca9eb76a83f9e
Reviewed-on: https://go-review.googlesource.com/c/website/+/534858
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
2023-10-13 17:38:57 +00:00
Dmitri Shuralyov e21a2c79bd cmd/{adminapp,adminredirect,googlegolangorg}: update App Engine runtime
Keep them up with the times.

Change-Id: I8f6940b59cac0c70320a796a0c3cfcdef8a2633d
Reviewed-on: https://go-review.googlesource.com/c/website/+/531676
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-10-12 21:55:11 +00:00
Eli Bendersky 1a42f6637b _content/doc: remove link to old blog post from a prominent place
The linked blog post is from the days of GOPATH and can be confusing
with modern Go; we have a more official documentation page on
organizing Go modules now.

Change-Id: I01b67f750055a83d9ecc25c596719ffd842ef7ed
Reviewed-on: https://go-review.googlesource.com/c/website/+/534795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-10-12 15:34:40 +00:00
Dan Kortschak ed33edc86c _content/blog: fix grammar
Change-Id: I6aa2feab8dec5e7b057cef94dfa7188a0ce361ee
Reviewed-on: https://go-review.googlesource.com/c/website/+/534435
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-10-11 04:43:45 +00:00
Dmitri Shuralyov 24b2e95ba7 internal/history: document Go 1.21.3 and 1.20.10 releases
Change-Id: I2b60b5f4129a565d23fd2eb5d64c0dbf578134b4
Reviewed-on: https://go-review.googlesource.com/c/website/+/534217
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-10-10 16:44:50 +00:00
Robert Griesemer 76748e4222 _content/blog: misc. fixes to inference blog post
Per feedback from Dmitri Shuralyov.
Also, smoothened out some repetitive prose.

Change-Id: Ia850912c2fc48ce62a5523382ea33c19e7a0bc6a
Reviewed-on: https://go-review.googlesource.com/c/website/+/533895
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-10-09 20:25:23 +00:00
Dmitri Shuralyov 9fc787971d internal/history: document future Go 1.21.3 and 1.20.10 releases
Change-Id: I88ba2892c8a0e953f0179dbd59eae9f43d1ecbce
Reviewed-on: https://go-review.googlesource.com/c/website/+/533955
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: Michael Pratt <mpratt@google.com>
2023-10-09 18:51:52 +00:00
Robert Griesemer 66ac2b290e _content/blog: add type inference blog post
Change-Id: I577c70f0f70b363cc23761367b58b6a35b447592
Reviewed-on: https://go-review.googlesource.com/c/website/+/532535
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
2023-10-07 00:26:17 +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
Alexander Yastrebov 9817d4fb13 _content/tour: add dark theme cursor and selection styles
Add styles for dark theme cursor and selection.
Cursor color set equal to the foreground color.
Focused selection color set to the complement color
of the background color and inactive selection
is the lighter tint of it.

Fixes golang/go#63313

Change-Id: If9702f45262eea330d42ec0fd9717b36da026540
GitHub-Last-Rev: 1545bbaea9
GitHub-Pull-Request: golang/website#253
Reviewed-on: https://go-review.googlesource.com/c/website/+/531856
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Suzy Mueller <suzmue@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-10-05 22:11:16 +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
Michael Pratt b743353d73 internal/history: document Go 1.21.2 and 1.20.9 releases
Change-Id: Ida8e46ae0c8cd6241a96eac5565310b8b767d307
Reviewed-on: https://go-review.googlesource.com/c/website/+/533255
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>
Reviewed-by: Than McIntosh <thanm@google.com>
2023-10-05 19:31:45 +00:00
Michael Pratt 438b262fe1 _content/doc/gc-guide: explain mark worker types
Within background mark workers we already have "dedicated",
"fractional", and "idle" workers. Those aren't currently discussed in
this doc, but the idle worker note would be more clear if it did, so
adjust.

Change-Id: I44446cfd157fdae6be29c961052dbdabb1394bcf
Reviewed-on: https://go-review.googlesource.com/c/website/+/531707
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
2023-10-02 20:28:41 +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
Dmitri Shuralyov 1aed222fcd internal/{gitfs,webtest}: use strings.Cut
Basic cut functionality is available in the standard library as of
Go 1.18, so today's supported Go versions (1.21 & 1.20) can use it.

Also delete cutAny since it was unused.

Change-Id: Iafce0197979d58f4ff4226fd5f640e925ab9b559
Reviewed-on: https://go-review.googlesource.com/c/website/+/531700
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-10-02 18:37:27 +00:00