[mirror] Home of the go.dev and golang.org websites
Перейти к файлу
Russ Cox 42b41e29af cmd/golangorg: serve tip.golang.org directly from Gerrit
This CL enables the code, committed in an earlier CL,
that serves tip.golang.org from an in-memory copy of the
Go repo, updated by a background loop, which will let us
retire the more heavyweight "deploy a whole new app in a loop"
that we currently use for tip.golang.org.

When this CL is committed, the "deploy a whole new app in a loop"
logic will deploy this new code, which will then start using the
in-memory copy, even though it is also being updated on each
change. At that point it will be safe to take down the app-updating
loop entirely, letting the default app do the serving.

Change-Id: Ica5cffd684c45d4a5b059772700a0a608f832bad
Reviewed-on: https://go-review.googlesource.com/c/website/+/335049
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-08-12 13:25:59 +00:00
_content _content/ref/mod: update terminology for Go 1.17 changes 2021-08-06 20:43:34 +00:00
blog blog, tour, go.dev, golang.org: stop referencing mirror.gcr.io URLs 2021-08-05 17:43:24 +00:00
cmd cmd/golangorg: serve tip.golang.org directly from Gerrit 2021-08-12 13:25:59 +00:00
go.dev blog, tour, go.dev, golang.org: stop referencing mirror.gcr.io URLs 2021-08-05 17:43:24 +00:00
internal cmd/golangorg: add ability to serve tip.golang.org directly from Gerrit 2021-08-12 13:25:58 +00:00
tour blog, tour, go.dev, golang.org: stop referencing mirror.gcr.io URLs 2021-08-05 17:43:24 +00:00
.gitattributes blog: delete per-repo files, update README.md, go.mod 2021-05-26 13:23:13 +00:00
.prettierrc all: add a section on JS/CSS formatting to README 2020-05-28 18:41:37 +00:00
AUTHORS initial commit 2019-01-04 09:34:42 -05:00
CONTRIBUTING.md initial commit 2019-01-04 09:34:42 -05:00
CONTRIBUTORS initial commit 2019-01-04 09:34:42 -05:00
LICENSE initial commit 2019-01-04 09:34:42 -05:00
PATENTS initial commit 2019-01-04 09:34:42 -05:00
README.md cmd/golangorg: simplify local vs prod programs 2021-02-24 17:35:01 +00:00
codereview.cfg x/website: add code and static files for website 2019-01-08 18:22:29 +00:00
content.go all: make compatible with Go 1.15 2021-06-15 02:35:50 +00:00
go-app-deploy.sh all: promote new app deployments only after they become ready 2021-06-23 19:06:38 +00:00
go.mod tour: stop being a submodule 2021-06-16 18:38:47 +00:00
go.sum tour: stop being a submodule 2021-06-16 18:38:47 +00:00

README.md

Go website

Go Reference

This repo holds content and serving programs for the golang.org web site.

Content is in _content/. Server code is in cmd/ and internal/.

To run the server to preview local content changes, use:

go run ./cmd/golangorg

The supporting programs cmd/admingolangorg and cmd/googlegolangorg are the servers for admin.golang.org and google.golang.org. (They do not use the _content/ directory.)

Each command directory has its own README.md explaining deployment.

JS/CSS Formatting

This repository uses prettier to format JS and CSS files.

The version of prettier used is 1.18.2.

It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the website repository is located at https://github.com/golang/go/issues. Prefix your issue with "x/website:" in the subject line, so it is easy to find.