commit | f0593d59714e6161a30fc758f2136d7f55440ab2 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Sun Aug 22 20:38:11 2021 -0400 |
committer | Russ Cox <rsc@golang.org> | Mon Aug 23 15:30:27 2021 +0000 |
tree | 294dc33d12852c66824df47017a98f18b3e5b3d7 | |
parent | 06c346b9b6a7f5c3cc2f8141447983467d37aa67 [diff] |
cmd/golangorg: disable IP-based China detection The IP-based detection of requests from China is from back in 2015 when we were preparing to serve golang.org directly in China. In 2018 we arranged to use golang.google.cn instead, but the old IP-based detection has lingered. It is no longer required, and it has false positives, so remove it. Fixes golang/go#47808. Change-Id: Ia7854456f8c0614c55007688e65c3c62c1799f33 Reviewed-on: https://go-review.googlesource.com/c/website/+/344289 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> Website-Publish: Russ Cox <rsc@golang.org>
This repo holds content and serving programs for the golang.org and go.dev web sites.
Content is in _content/ (golang.org), go.dev/_content/ (go.dev), and tour/ (tour.golang.org). Server code is in cmd/ and internal/.
To run the combined golang.org+go.dev 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/ directories.)
Each command directory has its own README.md explaining deployment.
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.
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.