Moved doc/modules.md from GOROOT to content/static/doc/modules.md.
Last updated in CL 214381. The corresponding deletion is CL 218240.
This documentation should be tied to the release, so it ought to be in
GOROOT. However, it won't be ready in time for Go 1.14, and we don't
want to wait until 1.15 to publish it.
Updates golang/go#33637
Change-Id: Ia7e59a74a764131cb1ae059b9f55a1dfc9fc9c9f
Reviewed-on: https://go-review.googlesource.com/c/website/+/218239
Reviewed-by: Bryan C. Mills <bcmills@google.com>
I forgot to escape them in CL 217877, and the TryBots don't currently
catch template errors in HTML docs.
Updates golang/go#37042
Updates golang/go#37072
Change-Id: Ia7b82a9c9b85914f224c04050bfbe3747d5a3acc
Reviewed-on: https://go-review.googlesource.com/c/website/+/218217
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
GitHub is remarkably permissive about usernames: 'github.com/user' is
an actual user, as is 'github.com/example'. We should not use those
paths, since those would make it easy to accidentally download remote
source code due to a typo.
In contrast, example.com is at least reserved by the IANA.
Change-Id: Iede134be4071434c47788e6dd8829cb78277a905
Reviewed-on: https://go-review.googlesource.com/c/website/+/217878
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Plus some additional minor cleanup:
- Set PATH using a command that does not depend on GOBIN or GOPATH
being set.
- Remove unusual whitespace from example output.
- Add Go 1.14 'go install' output to help clarify what happens when we
need to download a module.
Updates golang/go#37042
Change-Id: I1bfb4ba38ccefa2b95be309dd465e3523895c1b6
Reviewed-on: https://go-review.googlesource.com/c/website/+/217877
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
The whole page lists version tags, and we shouldn't be instructing users
to checkout branches that might be ahead of any released version.
Updates golang/go#36873
Change-Id: I832eab94819adf19a480d58e8889663958dac921
Reviewed-on: https://go-review.googlesource.com/c/website/+/217102
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Follow-up to CL CL 199417, which accidentally mixed in wording
from code.html.
Change-Id: Id91f036fc9072a9f19e61cc6aca0c27e1452ef92
Reviewed-on: https://go-review.googlesource.com/c/website/+/214283
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Removed the link to the screencast, since it's out of date.
Also mentioned modules.
Change-Id: I8321ced0e716ad2ed914d97d70eaf6c61f77872f
Reviewed-on: https://go-review.googlesource.com/c/website/+/214157
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
CL 199417 added a new doc/gopath_code.html file. This change adds
it to the list of files that are embedded in package static, and
regenerates the package.
A change described in https://golang.org/issue/29206#issuecomment-536099768
will make it no longer neccessary to do this step in the future.
Updates golang/go#28215
Updates golang/go#29206
Change-Id: Ia1bd125488e04b34f9b8e36de4397de32d77bcef
Reviewed-on: https://go-review.googlesource.com/c/website/+/213937
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Increase the separation between each step by giving them explicit
numbers. Expand on some of the deploy steps with more detail.
Update the default value of GO_REF to the current Go release branch
version. This way, it doesn't need to be overridden for each deploy.
Update references to the README.md file (it was recently renamed from
README.golangorg-app in CL 207438).
Change-Id: Ie34fed44a990a5c7ffe2acad68fd5c0f094f9143
Reviewed-on: https://go-review.googlesource.com/c/website/+/212239
Reviewed-by: Carlos Amedee <carlos@golang.org>
The generated static.go file was created in 2019 in CL 156321, and
it inherited the generator code from x/tools that uses today's year.
There isn't a need to update the copyright year, so make it a constant.
This change fixes the failing TestStaticIsUpToDate test in 2020,
and prevents it from breaking in every future year.
Fixesgolang/go#36360
Updates golang/go#11811
Change-Id: Ie87b1219448f1e288539f95280492b4f95b76798
Reviewed-on: https://go-review.googlesource.com/c/website/+/213121
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
The Go Security Policy page is copied from Go master as of 2019/12/13
(commit golang/go@0497f911ac, CL 211177).
This page not closely tied to specific Go releases, and thus is better
suited to live in the x/website repo.
Updates golang/go#29206
Change-Id: Ib23fa6ccd11218d5da231cca685f62e610d5c6c9
Reviewed-on: https://go-review.googlesource.com/c/website/+/211300
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
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>
The Release History, Pre-Go 1 Release History, and Weekly Snapshot
History pages are copied from Go master as of 2019/12/10 (commit
golang/go@931fe39400, CL 210717).
Updates golang/go#36075
Updates golang/go#29206
Change-Id: I24d24d6346405df2d3d657ea2b4aa049182d5141
Reviewed-on: https://go-review.googlesource.com/c/website/+/210797
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
It was removed unintentionally in CL 101295, where the intention was
to remove the (eq $.Dirname "/src") condition.
Fixesgolang/go#35812
Change-Id: I45f5c9cf28f3c6cddebe282f230a79019ac4d8bb
Reviewed-on: https://go-review.googlesource.com/c/website/+/208757
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
Make the README cover local non-production mode too,
update file name to match, and convert to markdown.
Change-Id: I7e3c86bf4ae2a3aeaed2dd2e3134747a275a006b
Reviewed-on: https://go-review.googlesource.com/c/website/+/207438
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The Code of Conduct is copied from Go master as of Nov 15 2019 (9b68ef81e606)
with a change to update the Project Stewards (now Carmen Andoh and Van Riper),
and no other changes.
This CL also updates static/gen.go to include this file
and regenerated static/static.go.
Change-Id: Ic639b821031f2ad41727728b3dc3b5b69e6d5265
Reviewed-on: https://go-review.googlesource.com/c/website/+/207437
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The README does not mention that files that are newly added to
the content directory need to be added manually to static/gen.go
file before running go generate. This change fixes that.
Update the description of how the static content is used in concert
with the content from the main Go repository in more detail.
Replace go install && ./golangorg with go run, since it's shorter.
Add a TODO note mentioning improvements that can be made in the near
future to simplify this process.
Updates golang/go#29206
Change-Id: I8a85bcb783c7c10975aa6fd5a7ad464f05d42dd2
Reviewed-on: https://go-review.googlesource.com/c/website/+/207262
Reviewed-by: Andrew Bonventre <andybons@golang.org>
The current talk is a cut-copy of the original dotGo talk
from 2015. Fix the link to point to the original recording.
Fixesgolang/go#35171
Change-Id: I9b0bf914672ffc202a5bbe277c7329dfb8bdd749
Reviewed-on: https://go-review.googlesource.com/c/website/+/203825
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
For now, continue to use the existing /_ah/health HTTP endpoint
for both the liveness and readiness checks. This is simple and
close to the previous legacy health check behavior. In the future,
we can consider making the readiness check more sophisticated.
This change should make golangorg deployable again after the
deprecation of legacy health checks.¹
¹ https://cloud.google.com/appengine/docs/flexible/go/migrating-to-split-health-checks
Change-Id: Ia68d3b260dd3a5b66f969318a04b8f97639701d6
Reviewed-on: https://go-review.googlesource.com/c/website/+/201743
Reviewed-by: Katie Hockman <katie@golang.org>
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>
The -url flag is unused. It had relatively niche
use-cases and was mostly a relic from cmd/godoc.
It's also completely non-functional due to a few bugs and
the fact CL 162907 hasn't been backported to x/website.
Instead of fixing it and adding tests, remove it.
If it becomes needed in the future, it can be re-added.
Update golang/go#29206
Change-Id: I4a460f460a757c78c3e26d7c97556c623c8dbed4
Reviewed-on: https://go-review.googlesource.com/c/website/+/197722
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
The documentation of the "flat" presentation mode was removed
inadvertently as part of post-CLI-removal documentation cleanup
in CL 143077. The FlatDir flag still exists and is supported.
This change re-adds it to cmd/golangorg documentation.
Also fix a typo in the "src" presentation mode description.
(This is a re-apply of CL 162984 into x/website.)
Updates golang/go#25443
Updates golang/go#29206
Change-Id: I84145bf38f008678a8d8f3d3346f646aa7811886
Reviewed-on: https://go-review.googlesource.com/c/website/+/197721
Reviewed-by: Andrew Bonventre <andybons@golang.org>
It was unused and incomplete.
It was potentially needed a while ago, back when the golang.org
website was running on a different Google Cloud Platform service.
It's not needed now, and can be re-added in the future
if it becomes needed again.
Change-Id: Id52945adf18b1e34f411f9a2eef6bd21889c6c1a
Reviewed-on: https://go-review.googlesource.com/c/website/+/197957
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Remove the override, use the default godoc.Presentation value of 4.
This increases consistency across various Go websites, and reduces
the amount of blank horizontal space use.
Fixesgolang/go#34448
Change-Id: Ie3e40f13e6275e74e79c46bbc242d4e5ad95ffda
Reviewed-on: https://go-review.googlesource.com/c/website/+/196937
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Adds css that was mistakenly removed to style the download
button properly at golang.org/doc/install
Fixesgolang/go#34185
Change-Id: I01c70230a9e8c3d79a9aec83e1b5d8bad011e276
Reviewed-on: https://go-review.googlesource.com/c/website/+/195519
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
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>
(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>
This code was originally in Google's internal repo, but there's
no good reason for it to stay there.
Change-Id: Id2cd2b2bb3691a14182a02e01c40005652106402
Reviewed-on: https://go-review.googlesource.com/c/website/+/191160
Reviewed-by: Katie Hockman <katie@golang.org>
+ Adjust the breakpoint in the header nav so that the text
doesn't overflow at certain widths
+ Change h1-h4 elements to be Work Sans
+ Add a top margin to the footer to give it more space
Fixesgolang/go#33638Fixesgolang/go#33652
Change-Id: I60567a6edbb3ddc42333b646b5127d8c328d3712
Reviewed-on: https://go-review.googlesource.com/c/website/+/190408
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Per golang.org/doc/go1.12#darwin, 10.10 is no longer supported in
Go 1.13.
Change-Id: Id49055398f35791573caf6c5956177481670059a
Reviewed-on: https://go-review.googlesource.com/c/website/+/189617
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
I forgot to account for changes made in
4f47846230
Change-Id: If4c28726d77a7458b2697a1581e0077dffc5da1d
Reviewed-on: https://go-review.googlesource.com/c/website/+/189319
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
+ Updates styling to accomodate smaller viewports
+ Adds “Supported by” as a preface to the Google logo
+ Pulls in Roboto and Product Sans from Google Fonts
Fixesgolang/go#33164Fixesgolang/go#33100
Change-Id: I43a8bfad05e67301a055ab91751f3868ef899210
Reviewed-on: https://go-review.googlesource.com/c/website/+/188983
Reviewed-by: Katie Hockman <katie@golang.org>